Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
youyo committed Nov 13, 2019
1 parent 5676d1a commit 95463aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ ADD . ${DIR}
RUN apk add --update --no-cache ca-certificates git
RUN go build -o dist/awscredswrap awscredswrap/main.go

FROM alpine:latest
FROM alpine:3
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
COPY --from=build-env /go/src/github.com/youyo/awscredswrap/dist/awscredswrap /awscredswrap
RUN apk add --update --no-cache ca-certificates bash
ENTRYPOINT ["/awscredswrap"]
4 changes: 0 additions & 4 deletions github-actions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM youyo/awscredswrap:latest

LABEL maintainer "youyo <1003ni2@gmail.com>"

RUN apk add --update --no-cache bash

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 95463aa

Please sign in to comment.