diff --git a/Dockerfile b/Dockerfile
index 56b654aab4460db4c399a759154b0d912e948e2d..37fe7927236f86dd9739e39bc94f01329093d99c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,6 +14,7 @@ FROM node AS node
 
 COPY . /var/www/html
 WORKDIR /var/www/html
+RUN export NODE_OPTIONS=--openssl-legacy-provider
 RUN npm --version && npm install && npm run prod
 
 #### Step 3 : the actual docker image