Add Dockerfile for building and running the application
All checks were successful
Build / build (push) Successful in 53s

This commit is contained in:
2025-03-24 12:42:25 +01:00
parent 82edcc51a7
commit 7d938d0c26

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
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"]