ContainerImage.SpamasaurusRex/Dockerfile
djpbessems 962f933fb7
Some checks reported errors
continuous-integration/drone Build encountered an error
chore: Set up blank repo and pipeline
2024-02-19 01:35:04 +01:00

21 lines
261 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"]