diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index b33042781bd0f00b093ed153a7083ecb1df1cfee..3a797edb2f8076aabe7f262590bd3e5c9979d12e 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -7,6 +7,7 @@ WORKDIR /usr/src/app
 ENV CLI_WIDTH 80
 RUN git clone https://github.com/LibrePhotos/librephotos-frontend /usr/src/app
 RUN npm install --legacy-peer-deps
+RUN npm run postinstall
 RUN npm run build
 
 FROM halverneus/static-file-server