benjolo commited on
Commit
57d5d20
1 Parent(s): 21f146e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -11
Dockerfile CHANGED
@@ -5,16 +5,16 @@ FROM python:3.10.4
5
  COPY . .
6
 
7
  # Install OS Libs
8
- # RUN apt-get update \
9
- # && apt-get -y install ffmpeg
10
 
11
  # Change to backend as working directory
12
  WORKDIR backend/
13
 
14
  # Install requirements.txt
15
- # RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
16
- # RUN pip install git+https://github.com/huggingface/transformers.git
17
- # RUN pip install pydantic[email]
18
 
19
  # Make all files and folders readable, writable, executable
20
  # RUN chmod -R 777 ./
@@ -22,10 +22,5 @@ WORKDIR backend/
22
  # RUN python3 run.py
23
 
24
  # Start the FastAPI app on port 7860, the default port expected by Spaces
25
- # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
26
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]
27
-
28
- RUN echo "$TRANSFORMERS_CACHE"
29
- RUN echo "$HF_ASSETS_CACHE"
30
- RUN echo "$HF_HUB_CACHE"
31
- RUN echo "$HF_HOME"
 
5
  COPY . .
6
 
7
  # Install OS Libs
8
+ RUN apt-get update \
9
+ && apt-get -y install ffmpeg
10
 
11
  # Change to backend as working directory
12
  WORKDIR backend/
13
 
14
  # Install requirements.txt
15
+ RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
16
+ RUN pip install git+https://github.com/huggingface/transformers.git
17
+ RUN pip install pydantic[email]
18
 
19
  # Make all files and folders readable, writable, executable
20
  # RUN chmod -R 777 ./
 
22
  # RUN python3 run.py
23
 
24
  # Start the FastAPI app on port 7860, the default port expected by Spaces
25
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
26
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]