build(docker): include default toml files in build context
All checks were successful
ci/woodpecker/tag/push-next Pipeline was successful
ci/woodpecker/tag/cron-docker-builder Pipeline was successful
ci/woodpecker/tag/tag-created Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-04-11 18:58:30 +01:00
parent c9d52a5b7f
commit fad4867402

View file

@ -13,6 +13,8 @@ RUN cargo chef cook --profile "$CARGO_PROFILE" --recipe-path recipe.json
# Build application # Build application
COPY Cargo.toml ./ COPY Cargo.toml ./
COPY src src COPY src src
COPY default.toml ./
COPY server-default.toml ./
ARG CARGO_PROFILE ARG CARGO_PROFILE
RUN cargo build --profile "$CARGO_PROFILE" --bin git-next RUN cargo build --profile "$CARGO_PROFILE" --bin git-next
RUN if test "$CARGO_PROFILE" == "release" ; then strip target/release/git-next ; fi RUN if test "$CARGO_PROFILE" == "release" ; then strip target/release/git-next ; fi
@ -22,9 +24,9 @@ FROM docker.io/debian:stable-20240211-slim AS runtime
WORKDIR /app WORKDIR /app
RUN apt-get update && \ RUN apt-get update && \
apt-get install --no-install-recommends -y \ apt-get install --no-install-recommends -y \
libssl3=3.0.11-1~deb12u2 \ libssl3=3.0.11-1~deb12u2 \
ca-certificates=20230311 \ ca-certificates=20230311 \
&& \ && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
USER 1000 USER 1000