whois/Dockerfile

14 lines
418 B
Docker
Raw Permalink Normal View History

2025-01-05 19:39:13 -05:00
FROM golang:1.23
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /app/whois
EXPOSE 8080
2025-01-05 20:00:43 -05:00
CMD ["/app/whois", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/whois.db", "--static-path", "/app/static", "--scheduler", "--ntfy-topics", "whois", "--ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "--ntfy-listener"]