Oh dear god, please fix this
This commit is contained in:
parent
bcb0a362da
commit
f891e44dcc
2 changed files with 11 additions and 1 deletions
10
Dockerfile
10
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
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue