Skip to content

Instantly share code, notes, and snippets.

@apotox
Created February 16, 2021 12:23
Show Gist options
  • Save apotox/1b5631378c63f116aa5a1de06df94b9f to your computer and use it in GitHub Desktop.
Save apotox/1b5631378c63f116aa5a1de06df94b9f to your computer and use it in GitHub Desktop.
deploy your react js app using Dockerfile without nginx server
FROM node:12.0-slim
COPY . .
RUN yarn install
RUN yarn build
RUN npm install -g serve
EXPOSE 8080
CMD ["serve","-p","8080","build/"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment