Browse Source

Added specific group and user id

funding-tag
Holger Frey 4 years ago
parent
commit
56ed4079dd
  1. 3
      Dockerfile

3
Dockerfile

@ -4,7 +4,8 @@ FROM python:3.8-alpine @@ -4,7 +4,8 @@ FROM python:3.8-alpine
RUN apk add --no-cache gcc libc-dev libffi-dev openssl openssl-dev python3-dev
# add user that will be used to install and run the application
RUN adduser -D deploy
RUN addgroup -g 1000 deploy
RUN adduser -D -u 1000 -G deploy deploy
# switch to the created user and install the application
USER deploy

Loading…
Cancel
Save