Set right user to run

Change user to run rootless.
This commit is contained in:
Dedy Martadinata S 2022-07-01 12:18:17 +07:00 committed by nitnelave
parent 429952c46f
commit ea82b1a644

View File

@ -63,6 +63,6 @@ RUN apt update && \
COPY --from=lldap --chown=$CONTAINERUSER:$CONTAINERUSER /lldap /app
COPY --from=lldap --chown=$CONTAINERUSER:$CONTAINERUSER /docker-entrypoint.sh /docker-entrypoint.sh
WORKDIR /app
USER $CONTAINERUSER
USER $USER
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
CMD ["run", "--config-file", "/data/lldap_config.toml"]