Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -12
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Use the official Python 3.10.4 image
|
| 2 |
FROM python:3.10.4
|
| 3 |
|
| 4 |
-
#
|
| 5 |
RUN apt-get update \
|
| 6 |
&& apt-get -y install ffmpeg
|
| 7 |
|
|
@@ -18,21 +18,13 @@ ENV HF_HUB_CACHE=/home/user/.cache
|
|
| 18 |
|
| 19 |
WORKDIR $HOME/backend
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
# COPY . .
|
| 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 |
-
#
|
| 33 |
-
#
|
| 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"]
|
|
|
|
| 1 |
# Use the official Python 3.10.4 image
|
| 2 |
FROM python:3.10.4
|
| 3 |
|
| 4 |
+
# Install OS Libs
|
| 5 |
RUN apt-get update \
|
| 6 |
&& apt-get -y install ffmpeg
|
| 7 |
|
|
|
|
| 18 |
|
| 19 |
WORKDIR $HOME/backend
|
| 20 |
|
| 21 |
+
# Install requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
|
| 23 |
RUN pip install git+https://github.com/huggingface/transformers.git
|
| 24 |
RUN pip install pydantic[email]
|
| 25 |
|
| 26 |
+
# Make all files and folders readable, writable, executable
|
| 27 |
+
# RUN chmod -R 777 ./
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 30 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|