Skip to content

Instantly share code, notes, and snippets.

@cigzigwon
Created July 15, 2016 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cigzigwon/9f6a115626cb296d0ca82674781bf6ce to your computer and use it in GitHub Desktop.
Save cigzigwon/9f6a115626cb296d0ca82674781bf6ce to your computer and use it in GitHub Desktop.
FROM node:argon
RUN useradd -ms /bin/bash yo
# Create app directory
WORKDIR /usr/src/app
# Install a yeoman and friends
RUN npm install -g yo bower babel-cli gulp
# Install yeoman generator
RUN npm install -g generator-react-gulp-browserify
# Setup rights
RUN chown -R yo /usr/src/app
RUN chown -R yo /root/.npm
RUN chown -R yo /usr/local/lib/node_modules/
USER yo
# Bundle app source
COPY ./app /usr/src/app
EXPOSE 8080
CMD ["yo", "react-gulp-browserify"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment