You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
382 B

  1. FROM alpine:3.4
  2. MAINTAINER fehguy
  3. RUN apk add --update nginx
  4. RUN mkdir -p /run/nginx
  5. COPY nginx.conf /etc/nginx/
  6. # copy swagger files to the `/js` folder
  7. ADD ./dist/ /usr/share/nginx/html/js
  8. ADD ./public/index.html /usr/share/nginx/html
  9. # change the folder structure
  10. RUN sed -i 's/\.\.\/dist/js/g' /usr/share/nginx/html/index.html
  11. EXPOSE 8080
  12. CMD exec nginx -g 'daemon off;'