Permalink
Browse files

Dockerize

  • Loading branch information...
1 parent d4899bb commit e31871f1ffec1ee4120d95e1faecff39ea7cc36d @felixge committed Dec 25, 2015
Showing with 24 additions and 0 deletions.
  1. +6 −0 .dockerignore
  2. +7 −0 Dockerfile
  3. +6 −0 docker-compose.yml
  4. +5 −0 nginx.conf
View
@@ -0,0 +1,6 @@
+*
+!template
+!guide
+!nginx.conf
+!Makefile
+!public/css
View
@@ -0,0 +1,7 @@
+FROM nginx:latest
+RUN apt-get update && \
+ apt-get install -y pandoc make && \
+ rm -rf /var/lib/apt/lists/*
+ADD ./nginx.conf /etc/nginx/conf.d/default.conf
+ADD . /srv/src
+RUN cd /srv/src && make && ln -s `pwd`/public /srv/www
View
@@ -0,0 +1,6 @@
+web:
+ build: .
+ ports:
+ - 80:80
+ volumes:
+ - ./nginx.conf:/etc/nginx/conf.d/default.conf
View
@@ -0,0 +1,5 @@
+server {
+ listen 80;
+ root /srv/www;
+ gzip on;
+}

0 comments on commit e31871f

Please sign in to comment.