bye phar
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 16m52s
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 16m52s
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user