Spaces:
Runtime error
Runtime error
Edward J. Schwartz
commited on
Commit
·
987a677
1
Parent(s):
945fcfa
Install python packages locally
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -8,9 +8,6 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 8 |
|
| 9 |
RUN apt-get -y update && apt-get -y install python3-pip
|
| 10 |
|
| 11 |
-
RUN pip3 install --no-cache-dir --upgrade setuptools
|
| 12 |
-
|
| 13 |
-
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 14 |
|
| 15 |
# Set up a new user named "user" with user ID 1000
|
| 16 |
RUN useradd -m -u 1000 user
|
|
@@ -18,6 +15,8 @@ RUN useradd -m -u 1000 user
|
|
| 18 |
# Switch to the "user" user
|
| 19 |
USER user
|
| 20 |
|
|
|
|
|
|
|
| 21 |
# Set home to the user's home directory
|
| 22 |
ENV HOME=/home/user \
|
| 23 |
PATH=/home/user/.local/bin:$PATH
|
|
|
|
| 8 |
|
| 9 |
RUN apt-get -y update && apt-get -y install python3-pip
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Set up a new user named "user" with user ID 1000
|
| 13 |
RUN useradd -m -u 1000 user
|
|
|
|
| 15 |
# Switch to the "user" user
|
| 16 |
USER user
|
| 17 |
|
| 18 |
+
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 19 |
+
|
| 20 |
# Set home to the user's home directory
|
| 21 |
ENV HOME=/home/user \
|
| 22 |
PATH=/home/user/.local/bin:$PATH
|