ContainerImage.SpamasaurusRex/Dockerfile
djpbessems ed7f09a8b0
All checks were successful
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 46s
Container & Helm chart / Container image (push) Successful in 51s
chore: Update build path
2024-02-27 22:32:12 +11:00

20 lines
279 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 ./pkg/spamasaurusrex
FROM scratch
WORKDIR /app
COPY --from=builder /app/main .
EXPOSE 80
CMD ["./main"]