Skip to content

Commit

Permalink
Better Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lowply committed May 20, 2019
1 parent 00eb196 commit 2e3c706
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ LABEL "repository"="https://github.com/lowply/auto-closer"
LABEL "homepage"="https://github.com/lowply/auto-closer"
LABEL "maintainer"="Sho Mizutani <[email protected]>"

COPY src src
ENV GO111MODULE=on
WORKDIR /go/src
RUN go build -o ../bin/main
COPY src .
RUN GO111MODULE=on go build -o /go/bin/main

ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 2e3c706

Please sign in to comment.