From 0107d668c8a63d851a1dd92533cabad2292f49d3 Mon Sep 17 00:00:00 2001 From: Baruch Odem Date: Mon, 12 Jun 2023 13:30:01 +0300 Subject: [PATCH] Revert "Merge run stages" This reverts commit 46afda25d9bd16db8f5e78cc8b87c2f33116e14c. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f03221e9..e6a37ae9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ FROM golang:1.20.5-alpine3.18 AS builder WORKDIR /app -COPY . . +COPY go.mod go.sum ./ RUN go mod download + +COPY . . RUN go build -o /app/2ms . # Runtime image