aboutsummaryrefslogtreecommitdiff
path: root/services/docker/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'services/docker/gateway')
-rw-r--r--services/docker/gateway/Dockerfile16
-rw-r--r--services/docker/gateway/mail-robots.txt2
2 files changed, 18 insertions, 0 deletions
diff --git a/services/docker/gateway/Dockerfile b/services/docker/gateway/Dockerfile
new file mode 100644
index 0000000..68ec5ca
--- /dev/null
+++ b/services/docker/gateway/Dockerfile
@@ -0,0 +1,16 @@
+FROM ghcr.io/gohugoio/hugo AS build-www
+COPY --from=www . /project/
+RUN ls && hugo
+
+FROM denoland/deno AS deno-build
+COPY --from=deno . /workdir/
+WORKDIR /workdir
+RUN deno install
+RUN deno task compile:gateway
+
+FROM debian
+RUN apt update && apt-get install -y tini certbot && rm -rf /var/lib/apt/lists/*
+ADD mail-robots.txt /srv/mail/robots.txt
+COPY --from=build-www /project/public /srv/www
+COPY --from=deno-build /workdir/gateway/out/crupest-gateway /app/
+CMD ["/usr/bin/tini", "--", "/app/crupest-gateway"]
diff --git a/services/docker/gateway/mail-robots.txt b/services/docker/gateway/mail-robots.txt
new file mode 100644
index 0000000..1f53798
--- /dev/null
+++ b/services/docker/gateway/mail-robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /