update dockerfile

This commit is contained in:
Simon Rieger 2024-03-08 14:22:02 +01:00
parent 209d7a974c
commit beed73ed1a

View file

@ -1,15 +1,13 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# Build the application from source # Build the application from source
FROM golang:1.21.4 AS build-stage FROM golang:1.20.10 AS build-stage
WORKDIR /app WORKDIR /app
COPY *.mod ./ COPY * ./
RUN go mod download RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /main RUN CGO_ENABLED=0 GOOS=linux go build -o /main
# Run the tests in the container # Run the tests in the container