summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 728ff30cd69f5a990280fa5aee5f074b37882884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]