Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Use the official Python 3.10.14 image
|
4 |
FROM python:3.10.14
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
@@ -8,12 +5,11 @@ RUN useradd -m -u 1000 user
|
|
8 |
# Switch to the "user" user
|
9 |
USER user
|
10 |
|
11 |
-
#
|
12 |
-
|
13 |
-
PATH=/home/user/.local/bin:$PATH
|
14 |
|
15 |
-
# Set the working directory to
|
16 |
-
WORKDIR
|
17 |
|
18 |
# Install requirements.txt
|
19 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
|
|
|
|
|
|
|
|
1 |
FROM python:3.10.14
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
|
|
5 |
# Switch to the "user" user
|
6 |
USER user
|
7 |
|
8 |
+
# Copy the current directory contents into the container at .
|
9 |
+
COPY . .
|
|
|
10 |
|
11 |
+
# Set the working directory to /
|
12 |
+
WORKDIR /
|
13 |
|
14 |
# Install requirements.txt
|
15 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|