Spaces:
Sleeping
Sleeping
env
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
-
WORKDIR /code
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
|
| 11 |
# Set up a new user named "user" with user ID 1000
|
| 12 |
RUN useradd -m -u 1000 user
|
|
|
|
| 1 |
FROM python:3.9
|
|
|
|
| 2 |
|
| 3 |
+
COPY . .
|
| 4 |
+
|
| 5 |
+
WORKDIR /
|
| 6 |
|
| 7 |
+
# Install dependencies
|
| 8 |
+
RUN pip install --no-cache --upgrade -r /requirements.txt
|
| 9 |
|
| 10 |
# Set up a new user named "user" with user ID 1000
|
| 11 |
RUN useradd -m -u 1000 user
|