summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 68c157aa8b113783f1e8175f9591ecd6dcbbbf7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM golang:1.23
WORKDIR /app

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

COPY . .

RUN go build -o /app/phoneof

EXPOSE 8080

CMD ["/app/phoneof", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/phoneof.db", "--static-path", "/app/static", "--scheduler", "--httpsms-endpoint", "https://httpsms.internal.simponic.xyz", "--ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "--ntfy-topic", "sms"]