We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9be22 commit ef72eadCopy full SHA for ef72ead
1 file changed
dev-environment/Dockerfile
@@ -1,11 +1,15 @@
1
FROM python:3.10-slim
2
3
+# create user
4
+RUN adduser --disabled-password --gecos "" appuser
5
+USER appuser
6
+
7
# set the working directory
-WORKDIR /code
8
+WORKDIR /home/appuser
9
10
# install dependencies
11
COPY ./requirements.txt ./
-RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
+RUN pip install --user --no-cache-dir --upgrade -r requirements.txt
13
14
# copy the src to the folder
15
COPY ./src ./src
0 commit comments