Add sw dockerfile

This commit is contained in:
Christine Dodrill 2015-11-08 19:20:03 -08:00
parent 3a78b3946c
commit 9ff2cfd6e9
1 changed files with 11 additions and 0 deletions

11
net/sw/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM nginx
ONBUILD ADD . /site
ONBUILD RUN cd /site && sw site && cp -vrf ./site.static /usr/share/nginx/html
ADD https://github.com/jroimartin/sw/archive/master.tar.gz /opt/sw.tar.gz
RUN cd /opt && tar vxf sw.tar.gz \
&& cd sw-master \
&& cp md2html.awk /usr/local/bin/md2html.awk \
&& cp sw /usr/local/bin/sw \
&& chmod a+x /usr/local/bin/*