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"]