bye phar
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 16m52s

This commit is contained in:
2025-12-09 22:41:15 -03:00
parent e9856e6bbb
commit 1c946f5b16
6 changed files with 89 additions and 105 deletions

View File

@@ -1,11 +1,21 @@
FROM php:8.4-fpm-alpine
# Install Nginx and MariaDB client; install PHP extensions (mysqli) and clean up
RUN apk add --no-cache --update nginx \
RUN apk add --no-cache --update nginx git unzip \
&& docker-php-ext-install mysqli \
&& rm -rf /var/cache/apk/* /tmp/*
# Copy your application code
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Copy only composer files first to leverage Docker cache
COPY composer.json /var/www/html/
# Increase timeout and install dependencies
ENV COMPOSER_PROCESS_TIMEOUT=2000
RUN composer install --no-dev --optimize-autoloader
# Copy the rest of the application code
COPY . /var/www/html/
# Create nginx.conf directly in the Docker build