Skip to content

Commit ef72ead

Browse files
committed
update dockerfile
1 parent bb9be22 commit ef72ead

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dev-environment/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
FROM python:3.10-slim
22

3+
# create user
4+
RUN adduser --disabled-password --gecos "" appuser
5+
USER appuser
6+
37
# set the working directory
4-
WORKDIR /code
8+
WORKDIR /home/appuser
59

610
# install dependencies
711
COPY ./requirements.txt ./
8-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
12+
RUN pip install --user --no-cache-dir --upgrade -r requirements.txt
913

1014
# copy the src to the folder
1115
COPY ./src ./src

0 commit comments

Comments
 (0)