whois/template/Dockerfile

14 lines
399 B
Docker
Raw 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
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"]