simplify: drop Dockerfile, use upstream node:22-slim
No custom images to maintain. docker-compose mounts the repo directly into the stock node container.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
web/node_modules
|
||||
npm-debug.log
|
||||
.env
|
||||
bmad/
|
||||
.standards/
|
||||
.git
|
||||
28
Dockerfile
28
Dockerfile
@@ -1,28 +0,0 @@
|
||||
FROM node:22-slim
|
||||
|
||||
# Install system deps for mcporter and codex
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
python3 \
|
||||
python3-pip \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install mcporter and codex globally
|
||||
RUN npm install -g @anthropic/mcporter @openai/codex
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy web deps first for layer caching
|
||||
COPY web/package.json web/package-lock.json* web/
|
||||
RUN cd web && npm install --production
|
||||
|
||||
# Copy everything else
|
||||
COPY . .
|
||||
|
||||
# Make start script executable
|
||||
RUN chmod +x start.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "web/server.js"]
|
||||
@@ -1,20 +1,14 @@
|
||||
services:
|
||||
forge:
|
||||
build: .
|
||||
image: node:22-slim
|
||||
container_name: forge-console
|
||||
working_dir: /app
|
||||
command: >
|
||||
sh -c "cd web && npm install --production --silent && node server.js"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
# Mount skills and config so changes persist without rebuild
|
||||
- ./skills:/app/skills
|
||||
- ./config:/app/config
|
||||
- ./bmad:/app/bmad
|
||||
- ./.standards:/app/.standards
|
||||
# Mount mcporter auth cache so OAuth tokens persist
|
||||
- mcporter-auth:/root/.mcporter
|
||||
- .:/app
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mcporter-auth:
|
||||
|
||||
Reference in New Issue
Block a user