From abf9490832abd2369d1a6a8e0d0f852d506d49d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sat, 12 Jun 2021 12:24:24 +0200 Subject: [PATCH] updated Dockerfile --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index cea1b31..9adae44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,17 +4,14 @@ WORKDIR /app COPY . . -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/migrate ./cmd/migrate/main.go RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/api ./cmd/api/main.go FROM scratch WORKDIR /app -COPY --from=builder /app/bin/migrate /usr/bin/ COPY --from=builder /app/bin/api /usr/bin/ EXPOSE 80 -CMD ["migrate"] -ENTRYPOINT ["api"] +CMD ["api"]