Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #47 from secrethub/feature/docker
Browse files Browse the repository at this point in the history
Add a Dockerfile
  • Loading branch information
SimonBarendse committed Apr 8, 2019
2 parents 197ee71 + f5295e1 commit 2fb4c4c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
@@ -0,0 +1,18 @@
FROM golang:1.12-alpine as build_base
WORKDIR /build
ENV GO111MODULE=on
RUN apk add --update git
COPY go.mod .
COPY go.sum .
RUN go mod download

FROM build_base as build
RUN apk add --update make
COPY . .
RUN make build

FROM alpine
COPY --from=build /build/secrethub /usr/bin/secrethub
RUN apk add --no-cache ca-certificates && \
update-ca-certificates
ENTRYPOINT ["secrethub"]

0 comments on commit 2fb4c4c

Please sign in to comment.