summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 8609a597c5295b60e12e0f0960d093e9f2aaf450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM golang:1.22

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN go install -v
RUN go build -o /app/hatecomputers

EXPOSE 8080

CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static", "--scheduler", "--dns", "--dns-port", "8053", "--dns-resolvers", "1.1.1.1:53,1.0.0.1:53", "--upload-path", "/app/uploads"]