This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user