benjolo commited on
Commit
c1ea5bb
1 Parent(s): 7498c65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -8,14 +8,11 @@ COPY . .
8
  RUN apt-get update \
9
  && apt-get -y install ffmpeg
10
 
11
- # Set the working directory to /
12
- WORKDIR /
13
 
14
  # Install requirements.txt
15
- RUN pip install --no-cache-dir --upgrade -r backend/requirements.txt
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"]