Skip to content

Instantly share code, notes, and snippets.

@tzermias
Last active December 7, 2015 22:46
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 tzermias/ceb67a995eb85f5653ff to your computer and use it in GitHub Desktop.
Save tzermias/ceb67a995eb85f5653ff to your computer and use it in GitHub Desktop.
Dockerfile from devstaff hack session
# 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