backup-notify/Dockerfile
Elizabeth Hunt 4f79cdfcc1
All checks were successful
continuous-integration/drone/push Build is passing
rename binary
2024-04-21 21:55:28 -07:00

15 lines
459 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.internal.simponic.xyz", "--ntfy-topics", "server-backups", "--ntfy-alert-topics", "alerts"]