Spaces:
Running
Running
Jirat Jaturanpinyo
commited on
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -11,12 +11,13 @@ ENV HOME=/home/user \
|
|
11 |
# Switch to the "user" user
|
12 |
USER user
|
13 |
|
14 |
-
# Copy the rest of the application code
|
15 |
-
COPY --chown=user . $HOME/app
|
16 |
-
|
17 |
# Create the app directory
|
18 |
WORKDIR $HOME/app
|
19 |
|
|
|
|
|
|
|
|
|
20 |
# Install requirements.txt
|
21 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
22 |
|
|
|
11 |
# Switch to the "user" user
|
12 |
USER user
|
13 |
|
|
|
|
|
|
|
14 |
# Create the app directory
|
15 |
WORKDIR $HOME/app
|
16 |
|
17 |
+
# Copy the application code and the requirements.txt file
|
18 |
+
COPY --chown=user requirements.txt $HOME/app
|
19 |
+
COPY --chown=user . $HOME/app
|
20 |
+
|
21 |
# Install requirements.txt
|
22 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
23 |
|