Webpack build and Dockerfile updates, to account for new structure

This commit is contained in:
Kyle Shockey
2017-03-24 21:55:01 -07:00
parent 997a31c0b5
commit 4a81a12f93
2 changed files with 1 additions and 5 deletions

View File

@@ -8,11 +8,8 @@ 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/* /usr/share/nginx/html/
# change the folder structure
RUN sed -i 's/\.\.\/dist/js/g' /usr/share/nginx/html/index.html
ADD ./dist/* /usr/share/nginx/html/
EXPOSE 8080

View File

@@ -13,7 +13,6 @@ module.exports = require('./make-webpack-config.js')({
entry: {
'swagger-ui-standalone-preset': [
'babel-polyfill',
'./src/standalone/index.js'
]
},