Include node_modules in final image (#263)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Malachi Soord 2022-11-09 12:47:28 +01:00 committed by GitHub
parent 8533a84487
commit 8bcd7b2b65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,7 @@ RUN \
\
&& npm ci \
&& node minify.js \
&& NODE_ENV=production npm ci \
\
&& apk del --no-cache --purge .build-dependencies \
\
@ -45,7 +46,6 @@ RUN \
/var/www/tasmoadmin/.github \
/var/www/tasmoadmin/.iocage \
/var/www/tasmoadmin/docker-compose.yml \
/var/www/tasmoadmin/tasmoadmin/node_modules \
/var/www/tasmoadmin/tasmoadmin/tests \
\
&& find /var/www/tasmoadmin -type f -name ".htaccess" -depth -exec rm -f {} \; \