Files
accounting/Dockerfile
schreifuchs 74d81e4271
All checks were successful
Go / build (push) Successful in 54s
Release / publish (push) Successful in 1m4s
chore: bump go version
2025-11-04 21:17:13 +01:00

23 lines
491 B
Docker

FROM golang:1.25 as build
WORKDIR /app
# Copy module files and download dependencies
COPY go.mod go.sum ./
RUN go mod download
# Copy the rest of the application source and build
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /invoiceapi cmd/invoiceapi/main.go
EXPOSE 8080
FROM alpine:3
# the test program:
COPY --from=build /invoiceapi /invoiceapi
# the tls certificates:
# NB: this pulls directly from the upstream image, which already has ca-certificates:
CMD [ "/invoiceapi" ]