Daniel Marques commited on
Commit
d23375c
1 Parent(s): 225e078

fix: add websocket in handlerToken

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. run.sh +4 -0
Dockerfile CHANGED
@@ -5,9 +5,9 @@ FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
5
 
6
  RUN apt-get update && apt-get upgrade -y \
7
  && apt-get install -y git build-essential libpq-dev gcc \
8
- wget ocl-icd-opencl-dev opencl-headers clinfo \
9
- libclblast-dev libopenblas-dev software-properties-common\
10
- g++-11 make python3 python-is-python3 pip \
11
  && mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
12
 
13
  COPY . .
@@ -32,4 +32,4 @@ WORKDIR $HOME/app
32
 
33
  COPY --chown=user . $HOME/app
34
 
35
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
 
6
  RUN apt-get update && apt-get upgrade -y \
7
  && apt-get install -y git build-essential libpq-dev gcc \
8
+ curl wget ocl-icd-opencl-dev opencl-headers clinfo \
9
+ libclblast-dev libopenblas-dev software-properties-common \
10
+ g++-11 make python3 python-is-python3 pip sb-release gpg redis \
11
  && mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
12
 
13
  COPY . .
 
32
 
33
  COPY --chown=user . $HOME/app
34
 
35
+ CMD ["sh", "run.sh"]
run.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ redis-cli --version
2
+ systemctl status redis
3
+
4
+ uvicorn "main:app" --port 7860 --host 0.0.0.0