mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +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
|
FROM golang:1.22-alpine AS builder
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk update && apk add --no-cache build-base git ca-certificates && update-ca-certificates
|
||||||
git \
|
|
||||||
build-base
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -14,6 +12,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/dist/renteas
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=builder /app/dist/rentease /app/dist/rentease
|
COPY --from=builder /app/dist/rentease /app/dist/rentease
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue