Spaces:
Sleeping
Sleeping
GitHub Actions commited on
Commit ·
8d3b578
1
Parent(s): 4be12cb
ci: use HF Dockerfile
Browse files1234567891011121334525 unmodified lines31323345464734353617 unmodified lines5455565771585960612 unmodified lines6465668067686970FROM php:8.4-cli
ENV 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=7860
RUN apt-get update && apt-get install -y \ git unzip curl zip ca-certificates gnupg \ libzip-dev \25 unmodified lines
RUN mkdir -p /home/user/app && chown user:user /home/user/app
COPY entrypoint.sh /entrypoint.shRUN chmod +x /entrypoint.sh
WORKDIR /home/user/app
USER user17 unmodified lines# Source codeCOPY --chown=user:user . .
RUN mkdir -p storage/framework/{sessions,views,cache/data} bootstrap/cache \RUN php artisan package:discover --ansi \ && php artisan package:discover --ansi \ && php artisan config:clear \ && php artisan route:clear \ && npm run build \2 unmodified lines
EXPOSE 7860
ENTRYPOINT ["/entrypoint.sh"]CMD 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