Created
March 31, 2016 14:17
-
-
Save Schniz/dc208348cf30d6c4bdfc04e74e492de8 to your computer and use it in GitHub Desktop.
DemocracyOS Docker image for isolated networks
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 | |
ENV PORT 80 | |
EXPOSE 80 | |
ENV NODE_ENV production | |
RUN git clone https://github.com/DemocracyOS/democracyos.git /opt/app | |
WORKDIR /opt/app | |
RUN npm install | |
RUN mkdir -p public/joe_files | |
RUN curl https://gist.githubusercontent.com/Schniz/62becabdab4fc13f9b5b/raw/65ab65bbb46e84ce3bceed1c5b7e40c39f006ad7/remove_cdns.sh | bash | |
RUN npm run build | |
RUN mkdir public/css | |
RUN node_modules/.bin/stylus lib/**/*.styl -o public/css | |
RUN cat public/css/*.css > public/app.css | |
CMD ["npm", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment