Skip to content

Commit

Permalink
Merge pull request #172 from tiewei/CNTV-239
Browse files Browse the repository at this point in the history
Add Dockerfile for dockerhub automatic build
  • Loading branch information
dseevr authored Dec 21, 2017
2 parents c76fef5 + 5cc6db3 commit 5d0e1a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.git

# don't import anything from the UI except the /app folder where the
# actual site and compiled assets live.
ui
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:1.7.6 as builder

COPY ./ /go/src/github.com/contiv/auth_proxy

WORKDIR /go/src/github.com/contiv/auth_proxy

RUN VERSION=$(git describe --tags --always) ./scripts/build_in_container.sh

FROM scratch

COPY ./ui/app /ui
COPY --from=builder /go/src/github.com/contiv/auth_proxy/build/output/auth_proxy /auth_proxy

WORKDIR /

ENTRYPOINT ["./auth_proxy"]

0 comments on commit 5d0e1a3

Please sign in to comment.