Skip to content

Instantly share code, notes, and snippets.

@ironbyte
Created March 1, 2019 05:21
Show Gist options
  • Save ironbyte/841933081c653e36fb56f24c7d39e85a to your computer and use it in GitHub Desktop.
Save ironbyte/841933081c653e36fb56f24c7d39e85a to your computer and use it in GitHub Desktop.
Dockerfile for launching a React app in development
FROM node:8.15-alpine
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package* /usr/src/app/
RUN npm install
RUN npm install react-scripts
COPY . .
CMD ["npm", "start"]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment