Created
May 19, 2016 18:30
-
-
Save podviaznikov/8ec3442bfcbcab5928bbde4ed7a74ac7 to your computer and use it in GitHub Desktop.
Dockerfile-metalsmith-blog
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
# Full list of versions available here: https://registry.hub.docker.com/_/node/tags/manage/\n' + | |
FROM node:0.10.38 | |
# Open up ports on the container | |
EXPOSE 80 8000 8080 3000 | |
# Add repository files to container | |
ENV BASE_URL=http://metalsmith-blog-staging-runnable.runnableapp.com | |
#Start: Packages | |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y python | |
#End | |
#Start: Main Repository | |
ADD ["./metalsmith-blog", "/metalsmith-blog"] | |
WORKDIR /metalsmith-blog | |
RUN npm install | |
RUN node index.js | |
#End | |
WORKDIR /metalsmith-blog | |
# Command to start the app | |
CMD cd build; python -m SimpleHTTPServer 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment