Last active
December 7, 2015 22:46
-
-
Save tzermias/ceb67a995eb85f5653ff to your computer and use it in GitHub Desktop.
Dockerfile from devstaff hack session
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
# This dockerfile clones github-analytics repository (https://github.com/kabitakis/github-analytics), installs prerequisites | |
# and runs the app. | |
# Start the container with `docker run -e TOKEN=test12345 <container>` | |
FROM node:latest | |
MAINTAINER tzermias | |
#Clone repository | |
RUN git clone https://github.com/kabitakis/github-analytics.git | |
WORKDIR github-analytics | |
# Install it | |
RUN npm install | |
RUN ./node_modules/.bin/browserify -t reactify public/*.js -o public/js/bundle.js | |
ENV TOKEN | |
# Expose port | |
EXPOSE 3000 | |
CMD GHTOKEN=TOKEN node github-analytics.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment