hatecomputers.club/Dockerfile

15 lines
299 B
Docker
Raw Normal View History

2024-03-25 14:08:35 -04:00
FROM golang:1.22
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN go build -o /app/hatecomputers
EXPOSE 8080
CMD ["/app/hatecomputers", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static"]