frontend: fix Webpack issue on building Docker image

This commit is contained in:
Harduino
2021-02-25 14:23:19 +03:00
parent 1648a8921c
commit e57ec4e2d4
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -1,5 +1,5 @@
# Build environment
FROM node as builder
FROM node:14 as builder
RUN mkdir /usr/src/app
@@ -18,10 +18,6 @@ COPY ./src /usr/src/app/src/
COPY ./*.sh /usr/src/app/
COPY ./*.json /usr/src/app/
# There were issues with the webpack installer from package.json
RUN rm -rf /usr/src/app/node_modules/webpack
#RUN yarn add webpack@4.42.0
RUN yarn build
# Production environment
+1 -1
View File
@@ -57,7 +57,7 @@
"shellwords": "^0.1.1",
"simplebar": "^4.2.3",
"styled-components": "^4.4.0",
"webpack": "^4.42.0",
"webpack": "4.44.2",
"websocket": "^1.0.30",
"yaml": "^1.7.2",
"yamljs": "^0.3.0",