From e57ec4e2d4e9d2496c615355730a94d36abaf850 Mon Sep 17 00:00:00 2001 From: Harduino Date: Thu, 25 Feb 2021 14:23:19 +0300 Subject: [PATCH] frontend: fix Webpack issue on building Docker image --- frontend/Dockerfile | 6 +----- frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f48b048d..cd11e347 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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 diff --git a/frontend/package.json b/frontend/package.json index 0b99f34c..6805e412 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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",