install certificates

This commit is contained in:
Ruidy 2024-07-18 14:46:05 +02:00
parent 036d267abf
commit 1137737afa
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -1,8 +1,6 @@
FROM golang:1.22-alpine AS builder
RUN apk add --no-cache \
git \
build-base
RUN apk update && apk add --no-cache build-base git ca-certificates && update-ca-certificates
WORKDIR /app
@ -14,6 +12,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/dist/renteas
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/dist/rentease /app/dist/rentease
WORKDIR /app