Webpack build and Dockerfile updates, to account for new structure
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = require('./make-webpack-config.js')({
|
||||
|
||||
entry: {
|
||||
'swagger-ui-standalone-preset': [
|
||||
'babel-polyfill',
|
||||
'./src/standalone/index.js'
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user