status-page:0.3 builds, but the status container exits as soon as it starts. Find out why, fix the Dockerfile, and replace the container.
Read the crash:
Compare WORKDIR and the COPY destinations, then look inside the image:
sh
cat Dockerfile
docker run --rm status-page:0.3 pwd
docker run --rm status-page:0.3 ls
docker run --rm status-page:0.3 ls /usr/src/appFix the COPY line so the code lands in the working directory, press Save, and rebuild:
The old container still points at the old image. Remove it and start a new one:
sh
docker rm status
docker run -d --name status -p 8080:3000 status-page:0.3
curl localhost:8080/health