Skip to content

Commit

Permalink
Fix user group for Python
Browse files Browse the repository at this point in the history
This fixes all python templates to set app group properly. Fixes
[#41](#41). Before
used to add GEO data for user, after the change adds group to user

Signed-off-by: Ivana Yovcheva (VMware) <[email protected]>
  • Loading branch information
ivanayov authored and alexellis committed Jul 17, 2018
1 parent f8ee57e commit 022f810
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion template/python-armhf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
&& apk del curl --no-cache

# Add non root user
RUN addgroup -S app && adduser -S -g app app
RUN addgroup -S app && adduser app -S -G app
RUN chown app /home/app

USER app
Expand Down
2 changes: 1 addition & 1 deletion template/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
&& apk del curl --no-cache

# Add non root user
RUN addgroup -S app && adduser -S -g app app
RUN addgroup -S app && adduser app -S -G app
RUN chown app /home/app

USER app
Expand Down
2 changes: 1 addition & 1 deletion template/python3-armhf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
&& apk del curl --no-cache

# Add non root user
RUN addgroup -S app && adduser -S -g app app
RUN addgroup -S app && adduser app -S -G app
RUN chown app /home/app

USER app
Expand Down
2 changes: 1 addition & 1 deletion template/python3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
&& apk del curl --no-cache

# Add non root user
RUN addgroup -S app && adduser -S -g app app
RUN addgroup -S app && adduser app -S -G app

WORKDIR /home/app/

Expand Down

0 comments on commit 022f810

Please sign in to comment.