Creathe the user at build time

This commit is contained in:
flow.gunso
2019-04-09 11:59:56 +02:00
parent 10b4eda111
commit 4bc58a0927

View File

@@ -43,6 +43,8 @@ RUN rm -f /import-seafile-apt-key.sh
ENV UNAME=seafuser
ENV UID=1000
ENV GID=1000
RUN groupadd -g $GID -o $UNAME ;\
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
USER $UNAME
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]