refactor to php composer
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 23m5s
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 23m5s
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user