mysql
Build and Push Docker Images / build-and-push (push) Successful in 5m22s

This commit is contained in:
2026-04-03 11:41:33 +02:00
parent 442c18c4aa
commit 975299919e
2 changed files with 3 additions and 15 deletions
+3 -6
View File
@@ -1,9 +1,6 @@
# Use an official PHP runtime as a parent image
FROM php:8.1-fpm
# CakePHP bin/cake uses this to skip probing; avoids edge cases with FPM images or CRLF-mangled scripts
ENV PHP=/usr/local/bin/php
# Set the working directory
WORKDIR /workspace
@@ -13,7 +10,7 @@ RUN apt-get update && apt-get install -y \
openssh-client \
unzip \
iputils-ping \
dos2unix \
default-mysql-client \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
@@ -27,7 +24,7 @@ RUN apt-get update && apt-get install -y \
cron \
sudo \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd mbstring zip pdo pdo_mysql pdo_pgsql pgsql intl
&& docker-php-ext-install gd mbstring zip pdo pdo_mysql mysqli pdo_pgsql pgsql intl
# Install Redis PHP extension via PECL
RUN apt-get update && apt-get install -y --no-install-recommends $PHPIZE_DEPS libssl-dev \
@@ -74,7 +71,7 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY crontab /etc/cron.d/laravel-cron
RUN chmod 0644 /etc/cron.d/laravel-cron
RUN crontab /etc/cron.d/laravel-cron
RUN dos2unix /usr/local/bin/entrypoint.sh
# Expose ports
EXPOSE 8000