Created
July 15, 2016 02:17
-
-
Save cigzigwon/9f6a115626cb296d0ca82674781bf6ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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