mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
docker: add migration-tool to the image
This commit is contained in:
parent
31cf9b8e2c
commit
ef0a0ffced
@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
# Don't track cargo generated files
|
# Don't track cargo generated files
|
||||||
target/*
|
target/*
|
||||||
server/target/*
|
|
||||||
app/target/*
|
|
||||||
auth/target/*
|
|
||||||
|
|
||||||
# Don't track the generated JS
|
# Don't track the generated JS
|
||||||
app/pkg/*
|
app/pkg/*
|
||||||
@ -20,6 +17,7 @@ Dockerfile
|
|||||||
README.md
|
README.md
|
||||||
LICENSE
|
LICENSE
|
||||||
docs/*
|
docs/*
|
||||||
|
example_configs/*
|
||||||
|
|
||||||
# Various config files that shouldn't be tracked
|
# Various config files that shouldn't be tracked
|
||||||
lldap_config.toml
|
lldap_config.toml
|
||||||
|
@ -31,11 +31,12 @@ RUN cargo chef prepare --recipe-path /tmp/recipe.json
|
|||||||
FROM chef AS builder
|
FROM chef AS builder
|
||||||
COPY --from=planner /tmp/recipe.json recipe.json
|
COPY --from=planner /tmp/recipe.json recipe.json
|
||||||
RUN cargo chef cook --release -p lldap_app --target wasm32-unknown-unknown \
|
RUN cargo chef cook --release -p lldap_app --target wasm32-unknown-unknown \
|
||||||
&& cargo chef cook --release -p lldap
|
&& cargo chef cook --release -p lldap \
|
||||||
|
&& cargo chef cook --release -p migration-tool
|
||||||
|
|
||||||
# Copy the source and build the app and server.
|
# Copy the source and build the app and server.
|
||||||
COPY --chown=app:app . .
|
COPY --chown=app:app . .
|
||||||
RUN cargo build --release -p lldap \
|
RUN cargo build --release -p lldap -p migration-tool \
|
||||||
# Build the frontend.
|
# Build the frontend.
|
||||||
&& ./app/build.sh
|
&& ./app/build.sh
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ WORKDIR /app
|
|||||||
COPY --from=builder /app/app/index_local.html app/index.html
|
COPY --from=builder /app/app/index_local.html app/index.html
|
||||||
COPY --from=builder /app/app/static app/static
|
COPY --from=builder /app/app/static app/static
|
||||||
COPY --from=builder /app/app/pkg app/pkg
|
COPY --from=builder /app/app/pkg app/pkg
|
||||||
COPY --from=builder /app/target/release/lldap lldap
|
COPY --from=builder /app/target/release/lldap /app/target/release/migration-tool ./
|
||||||
COPY docker-entrypoint.sh lldap_config.docker_template.toml ./
|
COPY docker-entrypoint.sh lldap_config.docker_template.toml ./
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
Loading…
Reference in New Issue
Block a user