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
[openfaas#41](openfaas#41). Before
used to add GEO data for user, after the change adds group to user

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
  • Loading branch information
ivanayov committed Jul 9, 2018
1 parent f7ad0d2 commit aeb61ff
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 aeb61ff

Please sign in to comment.