Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
@@ -8,26 +8,26 @@ ENV PYTHONUNBUFFERED=1
|
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
11 |
-
ARG UID=10001
|
12 |
-
RUN adduser \
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
|
21 |
|
22 |
# Switch to the non-privileged user to run the application.
|
23 |
-
USER appuser
|
24 |
|
25 |
# Copy the source code into the container.
|
26 |
COPY . .
|
27 |
COPY . .env
|
28 |
|
29 |
RUN
|
30 |
-
--mount=type=bind,source=requirements.txt,target=requirements.txt \
|
31 |
python -m pip install -r requirements.txt
|
32 |
|
33 |
# Expose the port that the application listens on.
|
|
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
11 |
+
# ARG UID=10001
|
12 |
+
# RUN adduser \
|
13 |
+
# --disabled-password \
|
14 |
+
# --gecos "" \
|
15 |
+
# --home "/nonexistent" \
|
16 |
+
# --shell "/sbin/nologin" \
|
17 |
+
# --no-create-home \
|
18 |
+
# --uid "${UID}" \
|
19 |
+
# appuser
|
20 |
|
21 |
|
22 |
# Switch to the non-privileged user to run the application.
|
23 |
+
# USER appuser
|
24 |
|
25 |
# Copy the source code into the container.
|
26 |
COPY . .
|
27 |
COPY . .env
|
28 |
|
29 |
RUN
|
30 |
+
# --mount=type=bind,source=requirements.txt,target=requirements.txt \
|
31 |
python -m pip install -r requirements.txt
|
32 |
|
33 |
# Expose the port that the application listens on.
|