mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
install certificates
This commit is contained in:
parent
036d267abf
commit
1137737afa
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue