From f891e44dcc6575cf61276be521a090116cf29bf2 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 15 May 2024 12:09:16 -0400 Subject: [PATCH] Oh dear god, please fix this --- Dockerfile | 10 ++++++++++ astro.config.mjs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 16b35b6..0bb92db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,22 @@ FROM node:lts AS runtime WORKDIR /app +# Copy site to Docker image COPY . . +# Install packages RUN npm install RUN npm run build +# Set website host and port ENV HOST=0.0.0.0 ENV PORT=4321 + +# Disable Keystatic +ENV SKIP_KEYSTATIC=true + +# Expose Port EXPOSE 4321 + +# Run CMD node ./dist/server/entry.mjs \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 5047021..18da4c8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -15,7 +15,7 @@ export default defineConfig({ '/docs/': '/docs/minpluto/introduction/', '/docs/minpluto': '/docs/minpluto/introduction/' // ? }, - integrations: [react(), markdoc(), keystatic(), + integrations: [react(), markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]), AutoImport({ imports: [ './src/components/keystatic/Image.astro',