summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: f0b096e4a60db9e4c3db96ad06c08e1f952a39e5 (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 . .

RUN go build -o /app/backup-notify

EXPOSE 8080

CMD ["/app/backup-notify", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/nackupnotify.db", "--static-path", "/app/static", "--scheduler", "--ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "--ntfy-topics", "server-backups", "--ntfy-alert-topics", "alerts"]