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

@@ -41,7 +41,7 @@ RUN cargo build --release -p lldap -p lldap_migration_tool -p lldap_set_password
&& ./app/build.sh
# Final image
FROM alpine:3.16
FROM alpine:3.19
ENV GOSU_VERSION 1.14
# Fetch gosu from git
@@ -80,6 +80,7 @@ COPY --from=builder /app/app/static app/static
COPY --from=builder /app/app/pkg app/pkg
COPY --from=builder /app/target/release/lldap /app/target/release/lldap_migration_tool /app/target/release/lldap_set_password ./
COPY docker-entrypoint.sh lldap_config.docker_template.toml ./
COPY scripts/bootstrap.sh ./
RUN set -x \
&& apk add --no-cache bash tzdata \