From 7b73faffcec0811e1f9fb233b766003e1ca8042c Mon Sep 17 00:00:00 2001 From: Shuhei Takahashi Date: Mon, 6 Jul 2020 22:19:40 +0900 Subject: [PATCH] go: Use the standard build/run protocol (#36) --- dockerfiles/go/Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/dockerfiles/go/Dockerfile b/dockerfiles/go/Dockerfile index ed7c328..f34c64f 100644 --- a/dockerfiles/go/Dockerfile +++ b/dockerfiles/go/Dockerfile @@ -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"]