aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:57:57 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:57:57 -0800
commit94dd1ca677c716975d43f323c97ea26f8fd4c962 (patch)
tree7eaf4f32af0a180457f935d5f2fdff941018a12f /Dockerfile
downloadsomething-94dd1ca677c716975d43f323c97ea26f8fd4c962.tar.gz
something-94dd1ca677c716975d43f323c97ea26f8fd4c962.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..09651cb
--- /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/something
+
+EXPOSE 8080
+
+CMD ["/app/something", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/something.db", "--static-path", "/app/static", "--scheduler"]