Add Dockerfile for building and running the application
All checks were successful
Build / build (push) Successful in 53s
All checks were successful
Build / build (push) Successful in 53s
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user