Fix UID assignment

This commit is contained in:
Aode 2020-02-16 11:48:45 -06:00
parent 64adfd27e1
commit 455e15ba2b

View file

@ -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