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 nginx.conf /etc/nginx/
|
||||||
|
|
||||||
# copy swagger files to the `/js` folder
|
# copy swagger files to the `/js` folder
|
||||||
ADD ./dist/ /usr/share/nginx/html/js
|
|
||||||
ADD ./public/* /usr/share/nginx/html/
|
ADD ./public/* /usr/share/nginx/html/
|
||||||
|
ADD ./dist/* /usr/share/nginx/html/
|
||||||
# change the folder structure
|
|
||||||
RUN sed -i 's/\.\.\/dist/js/g' /usr/share/nginx/html/index.html
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = require('./make-webpack-config.js')({
|
|||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
'swagger-ui-standalone-preset': [
|
'swagger-ui-standalone-preset': [
|
||||||
'babel-polyfill',
|
|
||||||
'./src/standalone/index.js'
|
'./src/standalone/index.js'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user