wishforge-ide/apps/ide/Dockerfile
eust-w b47a07e8d2 chore: baseline snapshot of the Codex-delivered code before review
Imports the previously untracked working tree as-is so that the review
changes that follow (requirements -> design -> implementation) can be
reviewed as diffs and reverted if needed. No content changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:18:04 +08:00

18 lines
817 B
Docker

FROM node:22.14.0-bookworm AS build
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ libsecret-1-dev libx11-dev libxkbfile-dev libudev-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/wishforge-ide
ENV PUPPETEER_SKIP_DOWNLOAD=true
COPY package.json package-lock.json ./
COPY policy ./policy
COPY collaboration ./collaboration
COPY coordination ./coordination
COPY security ./security
RUN npm ci --no-audit --no-fund
COPY scripts ./scripts
COPY product.json ./product.json
RUN npm run plugins:download && npm run build:production && mkdir /workspace && chown -R node:node /workspace && chmod -R go-w /opt/wishforge-ide
USER node
ENV NODE_ENV=production WISHFORGE_IDE_HOST=0.0.0.0 WISHFORGE_IDE_PORT=4300 WISHFORGE_WORKSPACE_PATH=/workspace
EXPOSE 4300
CMD ["node", "scripts/start.mjs"]