Created
February 9, 2016 08:28
-
-
Save icchy/21957fa59658db87356d to your computer and use it in GitHub Desktop.
hackmd/Dockerfile
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 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