Spaces:
Sleeping
Sleeping
GitHub Actions commited on
Commit ·
8d3b578
1
Parent(s): 4be12cb
ci: use HF Dockerfile
Browse files1234567891011121314151625 unmodified lines42434445464748495017 unmodified lines686970717273742 unmodified lines77787980FROM php:8.4-cliENV APP_ENV=production \APP_DEBUG=false \APP_URL=http://localhost \LOG_CHANNEL=stderr \LOG_LEVEL=debug \SESSION_DRIVER=file \CACHE_STORE=file \QUEUE_CONNECTION=sync \DB_CONNECTION=sqlite \PORT=7860RUN apt-get update && apt-get install -y \git unzip curl zip ca-certificates gnupg \libzip-dev \25 unmodified linesRUN mkdir -p /home/user/app && chown user:user /home/user/appCOPY entrypoint.sh /entrypoint.shRUN chmod +x /entrypoint.shWORKDIR /home/user/appUSER user17 unmodified lines# Source codeCOPY --chown=user:user . .RUN php artisan package:discover --ansi \&& php artisan config:clear \&& php artisan route:clear \&& npm run build \2 unmodified linesEXPOSE 7860ENTRYPOINT ["/entrypoint.sh"]1234525 unmodified lines31323334353617 unmodified lines54555657585960612 unmodified lines64656667686970FROM php:8.4-cliRUN apt-get update && apt-get install -y \git unzip curl zip ca-certificates gnupg \libzip-dev \25 unmodified linesRUN mkdir -p /home/user/app && chown user:user /home/user/appWORKDIR /home/user/appUSER user17 unmodified lines# Source codeCOPY --chown=user:user . .RUN mkdir -p storage/framework/{sessions,views,cache/data} bootstrap/cache \&& php artisan package:discover --ansi \&& php artisan config:clear \&& php artisan route:clear \&& npm run build \2 unmodified linesEXPOSE 7860CMD rm -f bootstrap/cache/config.php \&& php artisan config:clear \&& php artisan cache:clear \&& php artisan serve --host=0.0.0.0 --port="${PORT:-7860}"
Dockerfile+6-16