Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.