Skip to content

Commit

Permalink
go: Use the standard build/run protocol (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
nya3jp authored and beevee committed Jul 6, 2020
1 parent d18bb89 commit 7b73faf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dockerfiles/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM golang:1.14.4 AS build
WORKDIR /source
FROM golang:1.14.4

WORKDIR /solution
COPY . .
RUN cd app && go build -o app .

FROM debian:buster-20200607-slim
WORKDIR /build
COPY --from=build /source/app/app .
ENTRYPOINT ["./app"]
RUN ./build.sh
ENTRYPOINT ["./run.sh"]

0 comments on commit 7b73faf

Please sign in to comment.