From beed73ed1a39ce781cf95ba47bfe263f0c864767 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Fri, 8 Mar 2024 14:22:02 +0100 Subject: [PATCH] update dockerfile --- go/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/go/Dockerfile b/go/Dockerfile index a2fcc16..67c5138 100755 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -1,15 +1,13 @@ # syntax=docker/dockerfile:1 # Build the application from source -FROM golang:1.21.4 AS build-stage +FROM golang:1.20.10 AS build-stage WORKDIR /app -COPY *.mod ./ +COPY * ./ RUN go mod download -COPY *.go ./ - RUN CGO_ENABLED=0 GOOS=linux go build -o /main # Run the tests in the container