Fix UID assignment
This commit is contained in:
parent
64adfd27e1
commit
455e15ba2b
|
@ -26,7 +26,7 @@ ARG GID=1001
|
|||
RUN echo "Etc/UTC" > /etc/localtime && \
|
||||
mkdir -p /opt/mastodon && \
|
||||
addgroup --gid $GID mastodon && \
|
||||
adduser -D -h /opt/mastodon -u 991 -G mastodon -h /opt/mastodon mastodon && \
|
||||
adduser -D -h /opt/mastodon -u $UID -G mastodon -h /opt/mastodon mastodon && \
|
||||
echo "mastodon:`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256`" | chpasswd && \
|
||||
chown -R mastodon:mastodon /opt/mastodon
|
||||
|
||||
|
|
Loading…
Reference in a new issue