From ee3248af429ab34ccea8d932cebfeaee8edb4c73 Mon Sep 17 00:00:00 2001 From: dm Date: Thu, 20 Nov 2025 22:38:30 +0100 Subject: [PATCH] Astro config, dodanie hosta ze zmiennych, kopiowanie yamli i public olderu --- Dockerfile | 4 ++++ astro.config.mjs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ace7755..48acbdf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,10 @@ COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules COPY package*.json ./ +# YAML + public (runtime needed!) +COPY --from=builder /app/src/content ./src/content +COPY --from=builder /app/public ./public + ENV HOST=0.0.0.0 ENV PORT=4321 diff --git a/astro.config.mjs b/astro.config.mjs index 3629f7d..23a41a2 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,8 +8,8 @@ export default defineConfig({ mode: "standalone" }), server: { - host: true, - port: 4321, + host: process.env.HOST || '0.0.0.0', + port: parseInt(process.env.PORT || '4321'), }, integrations: [ tailwind({