From c6b706383b97fb5b7f0938275728f66283225dbe Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Wed, 28 Aug 2024 21:37:46 +0900 Subject: [PATCH] Remove ca-certificates, add EXPOSE to Dockerfile --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be4bcd9..c762802 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM golang:alpine AS builder -RUN apk add -U --no-cache ca-certificates && update-ca-certificates ENV GO111MODULE=on\ CGO_ENABLED=0\ @@ -17,11 +16,11 @@ RUN go build -o main . WORKDIR /dist RUN cp /build/main . FROM scratch -COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /dist/main . COPY --from=builder /usr/local/go/lib/time/zoneinfo.zip / ENV ZONEINFO=/zoneinfo.zip ENV TZ=Asia/Seoul +EXPOSE 4317 ENTRYPOINT [ "./main", "run" ] \ No newline at end of file