Skip to content

Commit dfd4464

Browse files
committed
fix(dockerfile-linux): set the UID/GID explicitly
1 parent b0b6bb5 commit dfd4464

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile-linux.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ FROM python:{{ env.python_version }}-{{ env.variant }}
1010
# runtime dependencies
1111
RUN set -eux; \
1212
{{ if is_alpine then ( -}}
13-
addgroup satosa; \
14-
adduser -D -G satosa satosa; \
13+
addgroup --gid 1000 satosa; \
14+
adduser -D -G satosa --uid 1000 satosa; \
1515
apk add --no-cache \
1616
bash \
1717
jq \
@@ -20,7 +20,8 @@ RUN set -eux; \
2020
xmlsec \
2121
; \
2222
{{ ) else ( -}}
23-
useradd -U satosa; \
23+
groupadd -g 1000 satosa; \
24+
useradd -g 1000 -u 1000 satosa; \
2425
apt-get update; \
2526
apt-get install -y --no-install-recommends \
2627
jq \

0 commit comments

Comments
 (0)