Skip to content

Conversation

@gouravjshah
Copy link

This PR adds a Dockerfile to build and run the Node.js front-end application.

Key points:

  • Uses official node:18-slim base image
  • Installs production dependencies with npm ci when package-lock.json is present
  • Copies application source and runs as unprivileged 'node' user
  • Exposes port 8079 and starts the app with npm start

You can test the image locally with: docker build -t front-end2 . and docker run -p 8079:8079 front-end2.

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.

2 participants