Skip to content

Commit c498e29

Browse files
committed
Remove onbuild and go-wrapper from Docker build
onbuild images [0] are deprecated go-wrapper [1] is deprecated [0] docker-library/official-images#2076 [1] docker-library/golang#205
1 parent 50fc1d9 commit c498e29

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Dockerfile

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
FROM golang:onbuild
2-
ENTRYPOINT ["go-wrapper", "run"]
3-
CMD [""]
1+
FROM golang:latest as build
2+
WORKDIR /go/src/app
3+
COPY . .
4+
RUN go get -d -v ./...
5+
RUN go install -v ./...
6+
7+
FROM debian:buster
8+
COPY --from=build /go/bin/app /
9+
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)