Skip to content

Instantly share code, notes, and snippets.

@icchy
Created February 9, 2016 08:28
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 icchy/21957fa59658db87356d to your computer and use it in GitHub Desktop.
Save icchy/21957fa59658db87356d to your computer and use it in GitHub Desktop.
hackmd/Dockerfile
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade && apt-get install -y apt-utils curl vim
# nodejs, npm
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash -
RUN apt-get install -y nodejs
# git
RUN apt-get install -y git
# psql client
RUN apt-get install -y postgresql-client-9.4
# deps
RUN apt-get install -y python build-essential make gcc g++ libkrb5-dev
# bower
RUN npm install -g bower
# source
RUN mkdir /hackmd
WORKDIR /hackmd
RUN git clone https://github.com/hackmdio/hackmd.git /hackmd
RUN git checkout 0f811797f07ded4f30832d2cf14c2848dd3192c7
# npm
RUN npm install
RUN bower install --allow-root
# add config
ADD config.js /hackmd/config.js
ADD docker-entrypoint.sh /hackmd/docker-entrypoint.sh
EXPOSE 3000
CMD ["/bin/bash", "/hackmd/docker-entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment