Fix Docker builds, TS errors, and deploy config
- API: PHP 8.4, composer install --no-scripts + dump-autoload after COPY - Admin: fix TS (Event.upload_password, unused router, api XSRF, window.open) - Upload: Uppy v5 (hideProgressDetails, headers, destroy), unused watch, api XSRF - Build script: loop over api/admin/upload, push :latest as well as VERSION - Deploy: MySQL from docker.io, platform linux/amd64; README troubleshooting Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# event-uploader API – Laravel. Same image used for api and queue (different command).
|
||||
FROM php:8.3-cli-alpine
|
||||
FROM php:8.4-cli-alpine
|
||||
|
||||
# PHP extensions for Laravel + MySQL + Google etc.
|
||||
RUN apk add --no-cache \
|
||||
@@ -25,13 +25,16 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Dependencies first (better layer cache)
|
||||
# Dependencies first (better layer cache). --no-scripts so Laravel's post-autoload-dump (artisan) is not run yet.
|
||||
COPY composer.json composer.lock ./
|
||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||
RUN composer install --no-dev --optimize-autoloader --no-interaction --no-scripts
|
||||
|
||||
# Application
|
||||
COPY . .
|
||||
|
||||
# Regenerate autoloader and run Laravel's post-install scripts (e.g. package:discover) now that artisan exists
|
||||
RUN composer dump-autoload --optimize --no-dev
|
||||
|
||||
# .env and APP_KEY are provided at runtime via compose
|
||||
|
||||
# Writable dirs (runtime will mount or use defaults)
|
||||
|
||||
Reference in New Issue
Block a user