From 8e193ce86fedc2dafa4dd07977f32fc97ebb19e7 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 13 Apr 2026 09:43:02 +0100 Subject: website/Dockerfile -> website.Dockerfile and copies symlink targets into capsule --- website.Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'website.Dockerfile') 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"] -- cgit v1.2.3