docker: Include bootstrap.sh in main image

This commit is contained in:
Jonathan
2024-04-01 17:54:09 +01:00
committed by GitHub
parent 7806ed34ff
commit 6d65a2546c
4 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ RUN set -x \
&& for file in $(cat /lldap/app/static/fonts/fonts.txt); do wget -P app/static/fonts "$file"; done \
&& chmod a+r -R .
FROM alpine:3.16
FROM alpine:3.19
WORKDIR /app
ENV UID=1000
ENV GID=1000
@@ -80,5 +80,6 @@ COPY --from=lldap --chown=$USER:$USER /lldap /app
VOLUME ["/data"]
HEALTHCHECK CMD ["/app/lldap", "healthcheck", "--config-file", "/data/lldap_config.toml"]
WORKDIR /app
COPY scripts/bootstrap.sh ./
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
CMD ["run", "--config-file", "/data/lldap_config.toml"]