about summary refs log tree commit diff
path: root/users/fcuny/notes
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-05 11:29:27 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-05 11:29:27 -0700
commit43a4a17882f0a4aa4bc75fca78387e52df01a602 (patch)
tree6fbba9681e6329727334fe511b6f1c024a8e78ca /users/fcuny/notes
parenthugo: TLS by default (diff)
downloadworld-43a4a17882f0a4aa4bc75fca78387e52df01a602.tar.gz
build: add Dockerfile
The Dockerfile used by fly is relying on an older version of hugo ([1]).
We can use a newer version and provide our own setup, and configure with
the flags we want (e.g. promote to HTTS automatically).

[1] https://github.com/superfly/flyctl/blob/3eb204909fbecd5fd2b1ba4517cdbce2abd9f74a/internal/build/imgsrc/builtins/defaultbuiltins.go#L89
Diffstat (limited to '')
-rw-r--r--users/fcuny/notes/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/fcuny/notes/Dockerfile b/users/fcuny/notes/Dockerfile
new file mode 100644
index 0000000..5e2b55a
--- /dev/null
+++ b/users/fcuny/notes/Dockerfile
@@ -0,0 +1,7 @@
+FROM klakegg/hugo:0.83.1-ext-alpine-onbuild AS hugo
+
+FROM pierrezemb/gostatic
+
+COPY --from=hugo /target /srv/http/
+
+CMD ["-port", "8080" , "-https-promote"]