Skip to content

Commit

Permalink
don't install cypress binary
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Oct 27, 2023
1 parent a4fb5e3 commit d1c1e28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1c1e28

Please sign in to comment.