Skip to content

Commit

Permalink
refactor dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGong2013 committed May 21, 2024
1 parent fbbce7d commit dc0afa5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

FROM golang:alpine as builder
WORKDIR /app
RUN apk update && apk upgrade && apk add --no-cache ca-certificates
RUN update-ca-certificates

FROM scratch
COPY /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY apkgo /apkgo
CMD /apkgo $@

0 comments on commit dc0afa5

Please sign in to comment.