Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -8,14 +8,11 @@ COPY . .
|
|
8 |
RUN apt-get update \
|
9 |
&& apt-get -y install ffmpeg
|
10 |
|
11 |
-
#
|
12 |
-
WORKDIR /
|
13 |
|
14 |
# Install requirements.txt
|
15 |
-
RUN pip install --no-cache-dir --upgrade -r
|
16 |
-
|
17 |
-
# Change to backend directory
|
18 |
-
WORKDIR "/backend"
|
19 |
|
20 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
21 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
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 |
|
17 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
18 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|