mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-04-20 00:11:23 +02:00
Fix missing CA Authorities in scratch image
This commit is contained in:
parent
3ec330e3a2
commit
b3caf8d8bf
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,8 @@ FROM golang:alpine AS builder
|
||||||
|
|
||||||
WORKDIR /tmp/build
|
WORKDIR /tmp/build
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache ca-certificates
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go build -o /tmp/build/bin/steamsalty
|
RUN go build -o /tmp/build/bin/steamsalty
|
||||||
|
@ -11,6 +13,7 @@ RUN go build -o /tmp/build/bin/steamsalty
|
||||||
FROM scratch
|
FROM scratch
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
|
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
|
||||||
|
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
||||||
|
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
|
||||||
|
|
||||||
ENTRYPOINT ["/app/steamsalty"]
|
ENTRYPOINT ["/app/steamsalty"]
|
Loading…
Reference in a new issue