From 0731c49ee0982b5a315fc606556f9a3e2a688839 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Fri, 6 Dec 2024 11:13:13 +0100 Subject: [PATCH] fix: dockerfile update Signed-off-by: Martin Buchleitner --- go/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/Dockerfile b/go/Dockerfile index c6e374a..06df8a7 100644 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -3,8 +3,8 @@ FROM golang:1.20.12-alpine AS builder WORKDIR /src COPY . . -RUN go mod download -RUN CGO_ENABLED=0 go build -o app . +RUN go mod download \ + && CGO_ENABLED=0 go build -o app . # output container ... FROM debian:buster-slim