summaryrefslogtreecommitdiff
path: root/template/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:23:43 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:23:57 -0800
commitb19321bab542de35564127dc77781af44252bcb9 (patch)
tree37d12f7867124e8440ee46ae9f903b242e8d62af /template/Dockerfile
parent321cd40fba0956e3aa697f9e7c7006159a032f58 (diff)
downloadoldinfra-b19321bab542de35564127dc77781af44252bcb9.tar.gz
oldinfra-b19321bab542de35564127dc77781af44252bcb9.zip
create a base template :) and use it for a new service
Diffstat (limited to 'template/Dockerfile')
-rw-r--r--template/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/template/Dockerfile b/template/Dockerfile
new file mode 100644
index 0000000..87a2422
--- /dev/null
+++ b/template/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/{{ 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"]