dockerfile
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22s

This commit is contained in:
hook-lord 2024-12-06 23:07:46 +01:00
parent 7306fe31f6
commit f45de9727b

View File

@ -1,6 +1,6 @@
FROM golang:1.23 AS builder FROM golang:1.23 AS builder
WORKDIR /app WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod ./
RUN go mod download RUN go mod download
COPY *.go ./ COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o job-api RUN CGO_ENABLED=0 GOOS=linux go build -o job-api