refactor to php composer
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 23m5s

This commit is contained in:
2025-12-09 22:33:15 -03:00
parent 5643e77f0f
commit e5ea38c973
5 changed files with 5 additions and 49 deletions

View File

@@ -4,7 +4,7 @@ COPY composer.json composer.json
# COPY composer.lock composer.lock # No lock file yet
COPY auth_keycloak.php auth_keycloak.php
COPY s3_client.php s3_client.php
RUN composer install --no-dev --ignore-platform-reqs --no-scripts --prefer-dist
RUN export COMPOSER_PROCESS_TIMEOUT=2000 && composer install --no-dev --ignore-platform-reqs --no-scripts --prefer-dist
# Stage 2: Final image
FROM php:8.4-fpm-alpine
@@ -17,7 +17,7 @@ RUN apk add --no-cache --update nginx \
# Copy dependencies from vendor stage
COPY --from=vendor /app/vendor /var/www/html/vendor
# Copy aws.phar
COPY vendor/aws.phar /var/www/html/vendor/aws.phar
# aws.phar is now installed via composer
# Copy application code
COPY . /var/www/html/