mirror of
https://codeberg.org/Mo8it/git-webhook-client
synced 2024-11-21 11:06:32 +00:00
Use Debian instead of Alpine
This commit is contained in:
parent
23dfc4fa61
commit
3b853060d0
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
FROM docker.io/library/rust:alpine AS chef
|
FROM docker.io/library/rust:latest AS chef
|
||||||
RUN apk add musl-dev
|
|
||||||
RUN cargo install cargo-chef
|
RUN cargo install cargo-chef
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
|
|
||||||
|
@ -8,18 +7,19 @@ COPY . .
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
RUN cargo chef prepare --recipe-path recipe.json
|
||||||
|
|
||||||
FROM chef AS builder
|
FROM chef AS builder
|
||||||
RUN apk add musl-dev sqlite-dev
|
RUN apt update && \
|
||||||
|
apt install libsqlite3-dev -y
|
||||||
COPY --from=planner /app/recipe.json recipe.json
|
COPY --from=planner /app/recipe.json recipe.json
|
||||||
RUN cargo chef cook --release --recipe-path recipe.json
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --release --bin git-webhook-client
|
RUN cargo build --release --bin git-webhook-client
|
||||||
|
|
||||||
FROM docker.io/library/alpine:latest AS runtime
|
FROM docker.io/library/debian:stable-slim AS runtime
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
ARG data_dir=/volumes/data
|
ARG data_dir=/volumes/data
|
||||||
ENV DATABASE_URL=$data_dir/db/db.sqlite
|
ENV DATABASE_URL=$data_dir/db/db.sqlite
|
||||||
ENV GWC_CONFIG_FILE=$data_dir/config.yaml
|
ENV GWC_CONFIG_FILE=$data_dir/config.yaml
|
||||||
RUN apk add git-lfs sqlite-dev npm zola && \
|
RUN apt update && \
|
||||||
git lfs install
|
apt install libsqlite3-dev -y
|
||||||
COPY --from=builder /app/target/release/git-webhook-client /usr/local/bin/git-webhook-client
|
COPY --from=builder /app/target/release/git-webhook-client /usr/local/bin/git-webhook-client
|
||||||
CMD ["git-webhook-client"]
|
CMD ["git-webhook-client"]
|
Loading…
Reference in a new issue