Skip to content

Commit

Permalink
Disable cache warmup in Dockerfile (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Dec 14, 2024
1 parent 766b5b9 commit fbd3337
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY ./docker/php.ini /usr/local/etc/php/conf.d/docker-z99-php.ini

# Warmup caches
RUN php ./docker/random-csv.php \
&& JBZOO_BUILD_PRELOADER=1 \
./csv-blueprint validate-csv \
--schema=/app/schema-examples/full.yml \
--csv=/app/docker/random_data.csv \
--apply-all=yes \
--report=text --mute-errors | grep issues \
&& rm ./docker/random_data.csv \
&& php ./docker/build-preloader.php \
&& php ./docker/preload.php \
&& du -sh /app/docker
#RUN php ./docker/random-csv.php \
# && JBZOO_BUILD_PRELOADER=1 \
# ./csv-blueprint validate-csv \
# --schema=/app/schema-examples/full.yml \
# --csv=/app/docker/random_data.csv \
# --apply-all=yes \
# --report=text --mute-errors | grep issues \
# && rm ./docker/random_data.csv \
# && php ./docker/build-preloader.php \
# && php ./docker/preload.php \
# && du -sh /app/docker

# && echo "opcache.preload=/app/docker/preload.php" >> /usr/local/etc/php/conf.d/docker-z99-php.ini

# Quick test
Expand Down

0 comments on commit fbd3337

Please sign in to comment.