diff --git a/Dockerfile b/Dockerfile index 97984d0..c436f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -280,13 +280,15 @@ COPY --from=composer:2.6.5 /usr/bin/composer /usr/bin/composer # pass it to build command with --build-arg BUILD_ALL=0 ARG BUILD_ALL=1 # install php and js dependencies and build assets +# avoid installing cypress +ENV CYPRESS_INSTALL_BINARY=0 # some ini settings are set on the command line to override the restrictive production ones already set # IMPORTANT: the yarn/build step must be done before the composer/install step because a source file (advancedQuery) will be generated by yarn # so in order for composer to take it into account, it must exist before we call the install command of composer. RUN if [ "$BUILD_ALL" = "1" ]; then corepack enable && yarn install \ && yarn run buildall:prod \ && /usr/bin/php81 -d memory_limit=256M -d open_basedir='' /usr/bin/composer install --prefer-dist --no-cache --no-progress --no-dev -a \ - && yarn cache clean; fi + && yarn cache clean && rm -r /root/.cache /root/.yarn; fi # END ELABFTW # NGINX PART 2