fix problem with node-prune on production build

This commit is contained in:
Michael Schramm 2021-05-06 20:11:04 +02:00
parent b0f0ff2a50
commit 020ec938b7
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- links at the bottom for new users
- fixes for hide contrib setting
- fix problem with node-prune on production build
### Security

View File

@ -17,7 +17,8 @@ RUN yarn build
RUN npm prune --production
# run node prune
RUN /usr/local/bin/node-prune
# there is some problem running node prune that then prevents the frontend to load (just start with /form/1 and it will crash)
#RUN /usr/local/bin/node-prune
FROM node:14-alpine
MAINTAINER OhMyForm <admin@ohmyform.com>