added dockerfile instructions

This commit is contained in:
Tony Tam
2017-03-18 13:58:30 -07:00
parent adf4fa854c
commit 9afe6802db
3 changed files with 78 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM alpine:3.4
MAINTAINER fehguy
RUN apk add --update nginx
RUN mkdir -p /run/nginx
COPY nginx.conf /etc/nginx/
# copy swagger files to the `/js` folder
ADD ./dist/ /usr/share/nginx/html/js
ADD ./public/index.html /usr/share/nginx/html
# change the folder structure
RUN sed -i 's/\.\.\/dist/js/g' /usr/share/nginx/html/index.html
EXPOSE 8080
CMD exec nginx -g 'daemon off;'