Skip to content

Commit

Permalink
Add
Browse files Browse the repository at this point in the history
  • Loading branch information
youyo committed Nov 9, 2019
1 parent fa20fdb commit 7c72f3d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1-alpine AS build-env
ENV DIR /go/src/github.com/youyo/awscredswrap
WORKDIR ${DIR}
ADD . ${DIR}
RUN apk add --update --no-cache ca-certificates git
RUN go build -o dist/awscredswrap awscredswrap/main.go

FROM alpine:latest
LABEL maintainer "youyo <1003ni2@gmail.com>"
ENV DIR /go/src/github.com/youyo/awscredswrap
COPY --from=build-env ${DIR}/dist/awscredswrap /awscredswrap
RUN apk add --update --no-cache ca-certificates
ENTRYPOINT ["/awscredswrap"]

0 comments on commit 7c72f3d

Please sign in to comment.