forked from spacebar/account
add SSL
This commit is contained in:
parent
cf5dd20132
commit
fc66ba009c
2 changed files with 3 additions and 1 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
.env.example
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
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
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -27,6 +27,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
|||
|
||||
FROM scratch AS final
|
||||
WORKDIR /
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app/dist/account /account
|
||||
COPY --from=builder /app/res /res
|
||||
ENTRYPOINT ["/account"]
|
||||
Loading…
Reference in a new issue