Skip to content

Commit

Permalink
Remove ca-certificates, add EXPOSE to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Aug 28, 2024
1 parent cb6aca8 commit c6b7063
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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\
Expand All @@ -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" ]

0 comments on commit c6b7063

Please sign in to comment.