From 7d938d0c26139e718a050d6fc3d38862ea582ce8 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Mon, 24 Mar 2025 12:42:25 +0100 Subject: [PATCH] Add Dockerfile for building and running the application --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6accf1b --- /dev/null +++ b/Dockerfile @@ -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"]