Skip to content

Commit

Permalink
Keep docker image up to date
Browse files Browse the repository at this point in the history
For the sake of security, we should use an updated Alpine image.
Even though we only use "git" from Alpine, Katafygio being
staticaly linked.
  • Loading branch information
bpineau committed May 12, 2018
1 parent 539fe2c commit ab620c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN make deps
RUN make build

FROM alpine:3.7
RUN apk --no-cache add ca-certificates git
RUN apk upgrade --no-cache && apk --no-cache add ca-certificates git
COPY --from=builder /go/src/github.com/bpineau/katafygio/katafygio /usr/bin/
USER nobody
ENTRYPOINT ["/usr/bin/katafygio"]
2 changes: 1 addition & 1 deletion assets/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.7
RUN apk --no-cache add ca-certificates git
RUN apk upgrade --no-cache && apk --no-cache add ca-certificates git
COPY katafygio /usr/bin/
USER nobody
ENTRYPOINT ["/usr/bin/katafygio"]

0 comments on commit ab620c3

Please sign in to comment.