Skip to content

Commit

Permalink
eb requires the -onbuild image
Browse files Browse the repository at this point in the history
  • Loading branch information
gewo committed May 22, 2018
1 parent cafe7ec commit cafeb87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM golang:1.4.2
FROM golang:1.4.2-onbuild
RUN go get github.com/tools/godep
ADD . /go/src/app
WORKDIR /go/src/app
RUN godep restore
RUN go build -o bin/application
ENV PORT 3000
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile.wo-onbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:1.4.2
RUN go get github.com/tools/godep
ADD . /go/src/app
WORKDIR /go/src/app
RUN godep restore
RUN go build -o bin/application
ENV PORT 3000
EXPOSE 3000
CMD ["./run"]

0 comments on commit cafeb87

Please sign in to comment.