summaryrefslogtreecommitdiff
path: root/template/Dockerfile
blob: ff39f7cd3af6e8e1d900567035c177218b60fc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM golang:1.23
WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN go build -o /app/{{ service }}

EXPOSE 8080

CMD ["/app/{{ service }}", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/{{ service }}.db", "--static-path", "/app/static", "--scheduler", "--ntfy-topics", "whois", "--ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club"]