Conversation
There was a problem hiding this comment.
Pull request overview
Adds an explicit containerization path for mesher/frontend-exp to support running the app via Docker (per issue #55’s “production Dockerfile + startup contract” goal), alongside a dev compose workflow and updated README guidance.
Changes:
- Added a multi-stage
Dockerfilewithdev,builder, andproductiontargets. - Added a
docker-compose.ymlfor running the dev target with bind mounts. - Updated
README.mdwith a new Docker Setup section.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
mesher/frontend-exp/README.md |
Introduces Docker setup documentation (currently has markdown/rendering issues and lacks production instructions). |
mesher/frontend-exp/Dockerfile |
Implements multi-stage Docker build for dev/production (currently contains build-breaking issues). |
mesher/frontend-exp/docker-compose.yml |
Adds a compose-based dev run configuration targeting the dev stage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mesher/frontend-exp/Dockerfile
Outdated
| EXPOSE 3000 | ||
|
|
||
| FROM base as builder | ||
| WORKDIR /app |
mesher/frontend-exp/Dockerfile
Outdated
| RUN addgroup -g 1001 -S nodejs | ||
| RUN adduser -S nextjs -u 1001 |
mesher/frontend-exp/Dockerfile
Outdated
|
|
||
| FROM base as builder | ||
| WORKDIR /app | ||
| COPY . . |
mesher/frontend-exp/Dockerfile
Outdated
| ENV NODE_ENV=production | ||
| RUN npm ci | ||
|
|
mesher/frontend-exp/Dockerfile
Outdated
|
|
||
|
|
||
| COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next | ||
| COPY --from=builder /app/node_modules ./node_modules |
There was a problem hiding this comment.
Pull request overview
Adds a production-oriented container build/run path for mesher/frontend-exp (operator app) to satisfy issue #55’s request for an explicit Docker-based deployment contract.
Changes:
- Added a multi-stage
Dockerfileplusdocker-compose.ymlfor local/dev container runs. - Updated Next.js config to
output: 'standalone'(intended to support production containerization). - Updated README with Docker setup instructions.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| mesher/frontend-exp/README.md | Documents Docker build/compose workflows for dev/prod. |
| mesher/frontend-exp/next.config.mjs | Enables Next.js standalone output for container-friendly builds. |
| mesher/frontend-exp/next-env.d.ts | Updates typed routes reference import path. |
| mesher/frontend-exp/Dockerfile | Introduces multi-stage Docker build for dev + production. |
| mesher/frontend-exp/docker-compose.yml | Adds a dev-target compose setup with bind mount + port mapping. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mesher/frontend-exp/README.md
Outdated
| This project supports both development and production environments using Docker. | ||
| ```bash | ||
| docker build -t <project-name> . | ||
| --- | ||
|
|
||
| ### 🔧 Development | ||
|
|
||
| Run the app with hot reload: | ||
|
|
||
| docker compose up |
mesher/frontend-exp/next.config.mjs
Outdated
| @@ -1,5 +1,6 @@ | |||
| /** @type {import('next').NextConfig} */ | |||
| const nextConfig = { | |||
| output: 'standalone', | |||
mesher/frontend-exp/Dockerfile
Outdated
| EXPOSE 3000 | ||
|
|
||
| FROM base AS builder | ||
| WORKDIR /app |
mesher/frontend-exp/Dockerfile
Outdated
| RUN addgroup -g 1001 -S nodejs | ||
| RUN adduser -S nextjs -u 1001 |
mesher/frontend-exp/Dockerfile
Outdated
| ENV NODE_ENV=production | ||
| RUN npm ci | ||
|
|
||
| RUN addgroup -g 1001 -S nodejs | ||
| RUN adduser -S nextjs -u 1001 | ||
| USER nextjs | ||
|
|
||
|
|
||
| COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next | ||
| COPY --from=builder /app/node_modules ./node_modules | ||
| COPY --from=builder /app/package.json ./package.json |
mesher/frontend-exp/Dockerfile
Outdated
| FROM base AS dev | ||
| ENV NODE_ENV=development | ||
| RUN npm install | ||
| COPY . . | ||
| CMD npm run dev No newline at end of file |
mesher/frontend-exp/Dockerfile
Outdated
| FROM node:20-bookworm-slim AS base | ||
| RUN apt-get update && apt-get install -y \ | ||
| g++ \ | ||
| make \ | ||
| python3 \ | ||
| && rm -rf /var/lib/apt/lists/* |
Summary
Related issues
Verification
# commands hereChecklist
Notes for reviewers
fixed #55