Skip to content

Commit 022f810

Browse files
ivanayovalexellis
authored andcommitted
Fix user group for Python
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]>
1 parent f8ee57e commit 022f810

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

template/python-armhf/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
99
&& apk del curl --no-cache
1010

1111
# Add non root user
12-
RUN addgroup -S app && adduser -S -g app app
12+
RUN addgroup -S app && adduser app -S -G app
1313
RUN chown app /home/app
1414

1515
USER app

template/python/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
99
&& apk del curl --no-cache
1010

1111
# Add non root user
12-
RUN addgroup -S app && adduser -S -g app app
12+
RUN addgroup -S app && adduser app -S -G app
1313
RUN chown app /home/app
1414

1515
USER app

template/python3-armhf/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
99
&& apk del curl --no-cache
1010

1111
# Add non root user
12-
RUN addgroup -S app && adduser -S -g app app
12+
RUN addgroup -S app && adduser app -S -G app
1313
RUN chown app /home/app
1414

1515
USER app

template/python3/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
1111
&& apk del curl --no-cache
1212

1313
# Add non root user
14-
RUN addgroup -S app && adduser -S -g app app
14+
RUN addgroup -S app && adduser app -S -G app
1515

1616
WORKDIR /home/app/
1717

0 commit comments

Comments
 (0)