mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
chore: use alpine for registry docker image
This commit is contained in:
parent
fbcc836064
commit
c51ac12968
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
||||||
FROM rust:1.82-bookworm AS builder
|
FROM rust:1.86-alpine3.21 AS builder
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk update && apk add musl-dev libressl-dev
|
||||||
|
|
||||||
RUN cargo build --release -p pesde-registry
|
RUN cargo build --release -p pesde-registry
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM alpine:3.21
|
||||||
|
|
||||||
COPY --from=builder /target/release/pesde-registry /usr/local/bin/
|
COPY --from=builder /target/release/pesde-registry /usr/local/bin/
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates
|
|
||||||
|
|
||||||
CMD ["/usr/local/bin/pesde-registry"]
|
CMD ["/usr/local/bin/pesde-registry"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue