commit 03
Some checks failed
Build / build (push) Failing after 48s

This commit is contained in:
Moritz Ruth 2025-02-28 21:40:45 +01:00
parent 556035d278
commit 5b6d2c6cf7
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
11 changed files with 338 additions and 472 deletions

18
Containerfile Normal file
View file

@ -0,0 +1,18 @@
FROM docker.io/rustlang/rust:nightly-alpine AS app-builder
WORKDIR /app
COPY . /app
RUN apk add musl-dev
RUN CADDY_PATH=/caddy cargo build --release
FROM docker.io/caddy:builder-alpine AS caddy-builder
RUN xcaddy build
FROM gcr.io/distroless/static-debian12
COPY --from=app-builder /app/target/release/sscdc /
COPY --from=caddy-builder /usr/bin/caddy /caddy
VOLUME "/config.toml"
VOLUME "/sites"
EXPOSE 80
CMD ["./sscdc"]