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