Skip to content

Commit

Permalink
Merge pull request #19 from karlomikus/develop
Browse files Browse the repository at this point in the history
Enable opcache
  • Loading branch information
karlomikus committed Nov 19, 2022
2 parents dee798a + 85dc016 commit da9b517
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.4.1
- Enable opcache in docker image
- Cache route and config in docker image

# v0.4.0
- Refactor image uploading and handling
- Updates for some base ingredients
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ RUN apt update \
&& apt-get autoremove -y \
&& apt-get clean

RUN docker-php-ext-install opcache

# Setup default apache stuff
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
COPY ./resources/apache.conf /etc/apache2/sites-available/000-default.conf
Expand Down
3 changes: 3 additions & 0 deletions resources/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ system_start_checkup() {
php artisan migrate --force
fi

php artisan config:cache
php artisan route:cache

echo "Setting permissions..."

chown -R www-data:www-data /var/www/cocktails
Expand Down
7 changes: 7 additions & 0 deletions resources/php.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[PHP]
post_max_size = 100M
upload_max_filesize = 100M

[opcache]
opcache.enable=1
opcache.validate_timestamps=0
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.max_wasted_percentage=10

0 comments on commit da9b517

Please sign in to comment.