Files
pcinv/Dockerfile
Sebastiaan de Schaetzen 7d938d0c26
All checks were successful
Build / build (push) Successful in 53s
Add Dockerfile for building and running the application
2025-03-24 12:42:25 +01:00

15 lines
237 B
Docker

FROM golang:1.23.1-alpine3.21
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY migrations ./migrations
COPY static ./static
COPY templates ./templates
COPY *.go ./
RUN go build -o /pcinv
RUN /pcinv --install
CMD ["/pcinv"]