Saltar a contenido

Go

Dockerfile

FROM golang:alpine as builder
# Install git.
# Git is required for fetching the dependencies.
RUN apk update && apk add --no-cache git
WORKDIR /build
COPY . .
RUN go mod download
RUN go build -o main .

FROM ghcr.io/architecture-it/golang:runtime
WORKDIR /app
COPY --from=builder /build/main /app/
CMD ["./main"]

TBD