update dockerfile
This commit is contained in:
parent
209d7a974c
commit
beed73ed1a
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue