backup-notify/Dockerfile

15 lines
472 B
Docker
Raw Normal View History

2024-04-21 21:46:40 -04:00
FROM golang:1.22
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
2024-04-22 00:55:28 -04:00
RUN go build -o /app/backup-notify
2024-04-21 21:46:40 -04:00
EXPOSE 8080
2024-07-06 19:41:48 -04:00
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,canary", "--ntfy-alert-topics", "alerts"]