feat: add multi-stage Dockerfile for static site by SmitVgithub · Pull Request #20 · SmitVgithub/ibm · GitHub
Skip to content

feat: add multi-stage Dockerfile for static site - #20

Open
SmitVgithub wants to merge 2 commits into
masterfrom
devops-agent-1780733781936
Open

feat: add multi-stage Dockerfile for static site#20
SmitVgithub wants to merge 2 commits into
masterfrom
devops-agent-1780733781936

Conversation

@SmitVgithub

Copy link
Copy Markdown
Owner

🤖 DevOps Agent - Automated Configuration

Summary

Multi-stage Dockerfile created: Stage 1 (node:20-alpine) installs devDependencies from package.json and runs jshint tests. Stage 2 (nginx:alpine) copies only the static assets for a lean production image.

Analysis

Creating a multi-stage Dockerfile for a Node.js static site project. The package.json has only a devDependency (jshint) and a test script. Stage 1 installs deps and runs lint/test, Stage 2 serves the static files using nginx.

Files Created

  • Dockerfile

Required Secrets

None

Next Steps

  1. Build the image: docker build -t ibm-site .
  2. Run locally: docker run -p 8080:80 ibm-site
  3. Visit http://localhost:8080 to verify the site loads
  4. If jshint fails on missing orgs.js, update the test script in package.json or add the file

⚠️ Please review all files before merging.

Generated by DevOps Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant