Skip to content

Commit

Permalink
Remove onbuild and go-wrapper from Docker build
Browse files Browse the repository at this point in the history
onbuild images [0] are deprecated
go-wrapper [1] is deprecated

[0] docker-library/official-images#2076
[1] docker-library/golang#205
  • Loading branch information
guewen committed Feb 18, 2020
1 parent 50fc1d9 commit c498e29
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM golang:onbuild
ENTRYPOINT ["go-wrapper", "run"]
CMD [""]
FROM golang:latest as build
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...

FROM debian:buster
COPY --from=build /go/bin/app /
ENTRYPOINT ["/app"]

0 comments on commit c498e29

Please sign in to comment.