about summary refs log tree commit diff
path: root/tools/govanity/Dockerfile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-12 13:53:33 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-12 15:46:24 -0700
commitaa80df2b26c7455007d3db96f01bfde66c6779df (patch)
tree00cc4724a8362d0edad8de1f13be408f1df17ba6 /tools/govanity/Dockerfile
parentconfig: replace homelab with tools (diff)
downloadworld-aa80df2b26c7455007d3db96f01bfde66c6779df.tar.gz
build: deploy to fly
Don't deploy to Google App anymore, but use fly.io instead.

Add steps to the Makefile to build a docker image, and to deploy the
application to fly.io.
Diffstat (limited to 'tools/govanity/Dockerfile')
-rw-r--r--tools/govanity/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/govanity/Dockerfile b/tools/govanity/Dockerfile
new file mode 100644
index 0000000..caca19a
--- /dev/null
+++ b/tools/govanity/Dockerfile
@@ -0,0 +1,13 @@
+FROM golang:1.16-alpine
+
+WORKDIR /src
+
+ADD go.mod /src
+ADD go.sum /src
+RUN go mod download
+
+ADD . /src
+
+RUN go build -o app .
+
+ENTRYPOINT ["/src/app"]