backup-notify/Dockerfile
Elizabeth Hunt e20896a8f3
All checks were successful
continuous-integration/drone/push Build is passing
Update Dockerfile
2024-07-06 19:41:48 -04:00

15 lines
472 B
Docker

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,canary", "--ntfy-alert-topics", "alerts"]