summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 973e2c89f502545e31346a392da780b67fa24bc3 (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/phoneassistant

EXPOSE 8080

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