summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2025-01-12 23:09:34 -0800
committerElizabeth Hunt <elizabeth@simponic.xyz>2025-01-12 23:09:34 -0800
commit18a945aab9b3129b82076f633fab1d13ba28148e (patch)
tree09703cdc24992c42c5c14051e73e0b614280f5bd /Dockerfile
downloadphoneassistant-18a945aab9b3129b82076f633fab1d13ba28148e.tar.gz
phoneassistant-18a945aab9b3129b82076f633fab1d13ba28148e.zip
initial commit by simponic-infra
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f82bdb6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,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", "whois", "--ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club"]