Skip to content

Commit 1a7a825

Browse files
committed
fix: use consistent uid for weblate user
This later needed when the container is executed.
1 parent 9436611 commit 1a7a825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-x", "-c"]
2727
# - the tty group for /dev/std* access
2828
# - see https://github.com/WeblateOrg/docker/issues/326 and https://github.com/moby/moby/issues/31243#issuecomment-406879017
2929
RUN \
30-
useradd --shell /bin/sh --user-group weblate --groups root,tty \
30+
userdel --remove ubuntu \
31+
&& useradd --uid 1000 --shell /bin/sh --user-group weblate --groups root,tty \
3132
&& mkdir -p /home/weblate/.ssh \
3233
&& touch /home/weblate/.ssh/authorized_keys \
3334
&& chown -R weblate:weblate /home/weblate \

0 commit comments

Comments
 (0)