Skip to content

Commit

Permalink
Add Dockerfile.alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Jan 18, 2020
1 parent df39dca commit 72523ac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.git
/Dockerfile
/Dockerfile.alpine
17 changes: 17 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.12-alpine3.10 AS builder

RUN apk --no-cache add make

COPY . /go/src/go.mozilla.org/sops
WORKDIR /go/src/go.mozilla.org/sops

RUN CGO_ENABLED=1 make install


FROM alpine:3.10

RUN apk --no-cache add \
vim ca-certificates
ENV EDITOR vim
COPY --from=builder /go/bin/sops /usr/local/bin/sops
ENTRYPOINT ["/usr/local/bin/sops"]

0 comments on commit 72523ac

Please sign in to comment.