Update Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
# Use an official Python runtime as base image
|
2 |
FROM python:3.9
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
|
|
1 |
# Use an official Python runtime as base image
|
2 |
FROM python:3.9
|
3 |
|
4 |
+
RUN useradd -m -u 1000 user
|
5 |
+
|
6 |
+
USER user
|
7 |
+
|
8 |
+
ENV HOME=/home/user \
|
9 |
+
PATH=/home/user/.local/bin:$PATH
|
10 |
+
|
11 |
+
WORKDIR $HOME/app
|
12 |
+
|
13 |
+
COPY --chown=user . $HOME/app
|
14 |
# Set the working directory
|
15 |
WORKDIR /app
|
16 |
|