benjolo commited on
Commit
72450bf
1 Parent(s): 133a8f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -18,22 +18,22 @@ ENV HF_HUB_CACHE=/home/user/.cache
18
  # COPY . .
19
 
20
  # # Install OS Libs
21
- # RUN apt-get update \
22
- # && apt-get -y install ffmpeg
23
 
24
  # # Change to backend as working directory
25
  # WORKDIR backend/
26
 
27
  # # Install requirements.txt
28
  RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
29
- # RUN pip install git+https://github.com/huggingface/transformers.git
30
- # RUN pip install pydantic[email]
31
 
32
  # # Make all files and folders readable, writable, executable
33
  # # RUN chmod -R 777 ./
34
 
35
- RUN python3 main.py
36
 
37
  # Start the FastAPI app on port 7860, the default port expected by Spaces
38
- # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
39
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]
 
18
  # COPY . .
19
 
20
  # # Install OS Libs
21
+ RUN apt-get update \
22
+ && apt-get -y install ffmpeg
23
 
24
  # # Change to backend as working directory
25
  # WORKDIR backend/
26
 
27
  # # Install requirements.txt
28
  RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
29
+ RUN pip install git+https://github.com/huggingface/transformers.git
30
+ RUN pip install pydantic[email]
31
 
32
  # # Make all files and folders readable, writable, executable
33
  # # RUN chmod -R 777 ./
34
 
35
+ # RUN python3 main.py
36
 
37
  # Start the FastAPI app on port 7860, the default port expected by Spaces
38
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
39
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]