Spaces:
Paused
Paused
tmzh
commited on
Commit
·
b069e35
1
Parent(s):
d435b5e
install requirements.txt after copy step
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -14,18 +14,15 @@ ENV HOME=/home/user \
|
|
14 |
# Set the working directory to the user's home directory
|
15 |
WORKDIR $HOME/app
|
16 |
|
17 |
-
# Copy the current directory contents into the container at /app
|
18 |
-
ADD . /app
|
19 |
-
|
20 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
21 |
RUN pip install --no-cache-dir --upgrade pip
|
22 |
|
23 |
-
# Install any needed packages specified in requirements.txt
|
24 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
25 |
-
|
26 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
27 |
COPY --chown=user . $HOME/app
|
28 |
|
|
|
|
|
|
|
29 |
# Make port 7860 available to the world outside this container
|
30 |
EXPOSE 7860
|
31 |
|
|
|
14 |
# Set the working directory to the user's home directory
|
15 |
WORKDIR $HOME/app
|
16 |
|
|
|
|
|
|
|
17 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
18 |
RUN pip install --no-cache-dir --upgrade pip
|
19 |
|
|
|
|
|
|
|
20 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
21 |
COPY --chown=user . $HOME/app
|
22 |
|
23 |
+
# Install any needed packages specified in requirements.txt
|
24 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
25 |
+
|
26 |
# Make port 7860 available to the world outside this container
|
27 |
EXPOSE 7860
|
28 |
|