From 8777f9d37893bae178808a128ef2915e1ec7f166 Mon Sep 17 00:00:00 2001 From: PA4KEV Date: Sat, 31 Dec 2022 11:35:32 +0100 Subject: [PATCH] Update README and commands documentation --- README.md | 12 ++++++++++++ commands.txt | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 58beeac..48ab0fb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ +# Docker commands + +## Local + +`docker build -t pa4kev/portfolio-reactjs-full:latest -f Dockerfile .` +`docker push pa4kev/portfolio-reactjs-full:latest` + +## Server + +`docker pull pa4kev/portfolio-reactjs-full` +`docker run -d --name react -p 80:80 pa4kev/portfolio-reactjs-full` + # Getting Started with Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). diff --git a/commands.txt b/commands.txt index 1dbcd5d..bc1265c 100644 --- a/commands.txt +++ b/commands.txt @@ -21,9 +21,13 @@ docker run -d --name react --rm -p 3000:3000 pa4kev/portfolio-reactjs-app - Locally, create Production ready React.js app: +nvm use 19.3.0 + npm run build (creates a /build directory) + +