strudel/Dockerfile
2025-05-24 06:49:49 +02:00

23 lines
570 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ---------- base ----------
FROM node:20-alpine
# native build tools and pnpm shim
RUN apk add --no-cache git python3 make g++ \
&& corepack enable \
&& corepack prepare pnpm@latest --activate # pin a version if you like
WORKDIR /usr/src/app
COPY . .
# monorepo deps
RUN pnpm install --frozen-lockfile
# the website build expects ./doc.json
RUN pnpm run jsdoc-json
# Astro dev port
EXPOSE 4321
# launch Strudels dev server on 0.0.0.0 so Docker can publish it
CMD ["pnpm", "--filter", "./website", "run", "dev", "--", "--host", "0.0.0.0", "--port", "4321"]