This commit is contained in:
red binder 2026-06-06 14:45:20 +02:00
commit fc66ba009c
2 changed files with 3 additions and 1 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
.env.example

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM rust:alpine AS chef FROM rust:alpine AS chef
RUN apk add --no-cache musl-dev lld g++ make perl openssl-dev openssl-libs-static protobuf-dev RUN apk add --no-cache musl-dev lld g++ make perl openssl-dev openssl-libs-static protobuf-dev ca-certificates
RUN cargo install cargo-chef RUN cargo install cargo-chef
WORKDIR /app WORKDIR /app
@ -27,6 +27,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
FROM scratch AS final FROM scratch AS final
WORKDIR / WORKDIR /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/dist/account /account COPY --from=builder /app/dist/account /account
COPY --from=builder /app/res /res COPY --from=builder /app/res /res
ENTRYPOINT ["/account"] ENTRYPOINT ["/account"]