Spaces:
Sleeping
Sleeping
abadesalex
commited on
Commit
•
5386184
1
Parent(s):
e6955b5
dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -15,9 +15,9 @@ ENV HOME=/home/user \
|
|
15 |
WORKDIR $HOME/app
|
16 |
|
17 |
# Upgrade pip and install dependencies
|
18 |
-
COPY --chown=user ./FastAPI/requirements.txt /
|
19 |
RUN pip install --no-cache-dir --upgrade pip \
|
20 |
-
&& pip install --no-cache-dir --upgrade -r /
|
21 |
|
22 |
# Install additional packages
|
23 |
USER root
|
@@ -25,10 +25,7 @@ RUN apt update && apt install -y ffmpeg
|
|
25 |
USER user
|
26 |
|
27 |
# Copy the application code and set the owner to the user
|
28 |
-
COPY --chown=user
|
29 |
-
|
30 |
-
# Copy the FastAPI app separately
|
31 |
-
COPY ./FastAPI/app /code/app
|
32 |
|
33 |
# Expose the port the app runs on
|
34 |
EXPOSE 8000
|
|
|
15 |
WORKDIR $HOME/app
|
16 |
|
17 |
# Upgrade pip and install dependencies
|
18 |
+
COPY --chown=user ./FastAPI/requirements.txt /home/user/app/requirements.txt
|
19 |
RUN pip install --no-cache-dir --upgrade pip \
|
20 |
+
&& pip install --no-cache-dir --upgrade -r /home/user/app/requirements.txt
|
21 |
|
22 |
# Install additional packages
|
23 |
USER root
|
|
|
25 |
USER user
|
26 |
|
27 |
# Copy the application code and set the owner to the user
|
28 |
+
COPY --chown=user ./FastAPI/app /home/user/app/app
|
|
|
|
|
|
|
29 |
|
30 |
# Expose the port the app runs on
|
31 |
EXPOSE 8000
|