- Change the name skuill to your own profile name in docker hub.
- Before publishing, change the version to the current one in package.json and in the commands below.
-
Build image and push to DockerHub:
cd C:\Projects\portfolio docker image build -t skuill/portfolio:5.3.0 . docker image build -t skuill/portfolio:latest . docker push skuill/portfolio:5.3.0 docker push skuill/portfolio:latest
-
Pull image, create and run container:
docker pull skuill/portfolio:latest docker run -dit --restart=always -p 3000:80 --name skuill-portfolio skuill/portfolio:latest
-
Inspect image:
docker exec -it skuill-portfolio /bin/sh