- Place the index.js, package.json, and Dockerfile in the same directory.
- Navigate to that directory in your terminal.
- Build the Docker image:
docker build -t les-vulnerable .
- Run the Docker container:
docker run -p 3000:3000 les-vulnerable
- Access the application in your browser at http://localhost:3000.