Skip to content

ycchong9/react-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Docker

1. Create Dockerfile

2. Dockerfile content

FROM node:15.13-alpine
WORKDIR /testdocker
ENV PATH="./node_modules/.bin:$PATH"
COPY . .
RUN npm run build
CMD ["npm", "start"]

3. Build Image

$ docker build --tag react .

4. Run container

$ docker run --publish 3000:3000 react

5. Stop container

$ docker stop <container_name>

$ docker rm <container_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published