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',