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 GitHub
parent 0dad470602
commit 45b0c24b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"]