Skip to content

Commit

Permalink
Adding certificates in the container
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoj3 committed Oct 31, 2019
1 parent 1512cad commit 938cbdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.13.1-alpine3.10 as builder

RUN adduser -D -g '' dirstalkuser
RUN apk add --update make git
RUN apk add --update make git ca-certificates

RUN mkdir -p $GOPATH/src/github.com/stefanoj3/dirstalk
ADD . $GOPATH/src/github.com/stefanoj3/dirstalk
Expand All @@ -14,6 +14,7 @@ FROM scratch

COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /go/src/github.com/stefanoj3/dirstalk/dist/dirstalk /bin/dirstalk
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

USER dirstalkuser
CMD ["dirstalk"]

0 comments on commit 938cbdc

Please sign in to comment.