diff --git a/Dockerfile b/Dockerfile
index b73231bfef8886199105b1c4735fc73918f14fa5..211221698521a16e834cc0786e35e3bab93e7488 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,12 @@ WORKDIR /src
 
 RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends curl ca-certificates nodejs
 RUN curl -qL https://www.npmjs.com/install.sh | sh
-RUN npm install webpack -g
+RUN npm install --save core-js@3.3
+RUN npm install --save css-loader@6.5.0
+RUN npm update
+RUN npm install
+RUN ./node_modules/.bin/webpack
+
 
 # Debian bullseye can't build gostatic due to its strict dependency
 # on Go 1.16, so we build it separately.