summaryrefslogtreecommitdiff
path: root/website.Dockerfile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-13 09:43:02 +0100
committerJoe Carstairs <me@joeac.net>2026-04-13 09:43:02 +0100
commit8e193ce86fedc2dafa4dd07977f32fc97ebb19e7 (patch)
tree5bf493b187e35894c3c29e70c0231a5b7de8962f /website.Dockerfile
parent4198ceb4b34201452a345b29401cb5b852ca322c (diff)
website/Dockerfile -> website.Dockerfile and copies symlink targets into capsule
Diffstat (limited to 'website.Dockerfile')
-rw-r--r--website.Dockerfile15
1 files changed, 9 insertions, 6 deletions
diff --git a/website.Dockerfile b/website.Dockerfile
index 84e5963..d858627 100644
--- a/website.Dockerfile
+++ b/website.Dockerfile
@@ -14,6 +14,12 @@ RUN npm run astro db push
COPY website .
+# Some capsule content is symlinked into the website, so
+# we need to copy over the targets of the symlinks
+RUN mkdir -p /capsule/content/logs
+COPY capsule/content/logs/longlog /capsule/content/logs/longlog
+COPY capsule/content/images /capsule/content/images
+
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
@@ -23,17 +29,14 @@ ARG LOCAL_SMTP_PASSWORD
ARG LOCAL_SMTP_PORT
#ENV LOCAL_SMTP_ENVELOPE_FROM=$LOCAL_SMTP_ENVELOPE_FROM \
#ENV LOCAL_SMTP_USER=$LOCAL_SMTP_USER \
- #LOCAL_SMTP_HOST=$LOCAL_SMTP_HOST \
- #LOCAL_SMTP_PASSWORD=$LOCAL_SMTP_PASSWORD \
+#LOCAL_SMTP_HOST=$LOCAL_SMTP_HOST \
+#LOCAL_SMTP_PASSWORD=$LOCAL_SMTP_PASSWORD \
# LOCAL_SMTP_PORT=$LOCAL_SMTP_PORT \
# REMOTE_SMTP_HOST=$REMOTE_SMTP_HOST \
# REMOTE_SMTP_PORT=$REMOTE_SMTP_PORT \
# REMOTE_SMTP_USER=$REMOTE_SMTP_USER \
# MAX_DAILY_EMAILS=$MAX_DAILY_EMAILS
-RUN npm run build #&& rm -rf public src
-
-RUN mkdir -p /capsule/content/logs
-COPY capsule/content/logs/longlog /capsule/content/logs/longlog
+RUN npm run build && rm -rf public src
CMD ["node", "./dist/server/entry.mjs"]