We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4899bb commit e31871fCopy full SHA for e31871f
.dockerignore
@@ -0,0 +1,6 @@
1
+*
2
+!template
3
+!guide
4
+!nginx.conf
5
+!Makefile
6
+!public/css
Dockerfile
@@ -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
7
+RUN cd /srv/src && make && ln -s `pwd`/public /srv/www
docker-compose.yml
+web:
+ build: .
+ ports:
+ - 80:80
+ volumes:
+ - ./nginx.conf:/etc/nginx/conf.d/default.conf
nginx.conf
@@ -0,0 +1,5 @@
+server {
+ listen 80;
+ root /srv/www;
+ gzip on;
+}
0 commit comments