https://mattermost.com/blog/how-to-deploy-a-react-app-to-kubernetes-using-docker/
https://www.docker.com/resources/kubernetes-and-docker/
Create Dockerfile at root directory of React app
# set the base image to build from
FROM node:alpine
# set the working directory
WORKDIR /app
# copy package files
COPY package.json ./
COPY package-lock.json ./
# install dependencies
RUN npm install
# copy everything to /app directory
COPY ./ ./
# run the app
CMD ["npm", "start"]
Add a .dockerignore file
node_modules
.git
npm-debug.log
Dockerfile
once installation is ready, build Docker image for application
docker build -t <your-image-name> < Dockerfile filepath>
ex.
docker build -t react-app .
creates image in Docker based on Dockerfile - available in Docker instance