Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ RUN npm ci
COPY . .

RUN composer dump-autoload --optimize --no-dev \
&& php artisan config:cache \
&& php artisan route:cache \
&& php artisan view:cache \
&& npm run build

# ── Runtime Stage ────────────────────────────────────────────
Expand All @@ -48,6 +45,7 @@ COPY --from=build /var/www /var/www
RUN rm -rf node_modules tests .git .editorconfig .prettierrc .prettierignore \
&& rm -f docker-compose.prod.yml Dockerfile .dockerignore \
&& rm -f README.md LICENSE \
&& rm -f bootstrap/cache/*.php \
&& mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache \
&& chown -R www-data:www-data storage bootstrap/cache

Expand Down
11 changes: 8 additions & 3 deletions docker-compose/prod/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ echo "Starting Taskly..."

mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache

php artisan migrate --force

php artisan config:cache 2>/dev/null || true
php artisan config:clear
php artisan config:cache
php artisan route:cache 2>/dev/null || true
php artisan view:cache 2>/dev/null || true

php artisan migrate --force

chown -R www-data:www-data storage bootstrap/cache

echo "Taskly is ready."

if [ $# -gt 0 ]; then
exec "$@"
fi

exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
Loading