Skip to content

Instantly share code, notes, and snippets.

@podviaznikov
Created May 19, 2016 18:30
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 podviaznikov/8ec3442bfcbcab5928bbde4ed7a74ac7 to your computer and use it in GitHub Desktop.
Save podviaznikov/8ec3442bfcbcab5928bbde4ed7a74ac7 to your computer and use it in GitHub Desktop.
Dockerfile-metalsmith-blog
# 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