Skip to content

Commit

Permalink
Merge pull request #26 from wcodesoft/bug/fix-tls-docker-scratch
Browse files Browse the repository at this point in the history
Fix the tls when building docker image.
  • Loading branch information
walterjgsp authored Sep 10, 2023
2 parents 2868866 + fb18e2b commit 485eadc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ COPY . .
RUN go get .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM alpine:3.18 as certs
RUN apk --update add ca-certificates

FROM scratch

COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

ENV HTTP_PORT 8180
ENV GRPC_PORT 8181
ENV MONGO_DB_HOST "mongodb://localhost:27017"
Expand Down

0 comments on commit 485eadc

Please sign in to comment.