ContainerImage.SpamasaurusRex/Dockerfile
djpbessems b43a471dc1
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 35s
Container & Helm chart / Container image (push) Failing after 56s
chore: Fix incorrect escape sequence
2024-02-27 22:27:12 +11:00

20 lines
260 B
Docker

FROM golang:latest as builder
WORKDIR /app
COPY go.mod go.sum ./
COPY . .
RUN go mod download && \
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
FROM scratch
WORKDIR /app
COPY --from=builder /app/main .
EXPOSE 80
CMD ["./main"]