paneln8n/Dockerfile
2025-09-11 23:01:21 +02:00

37 lines
1.4 KiB
Docker

FROM php:8.3-cli
WORKDIR /code
RUN apt-get -qq update && \
apt-get -qq -y --no-install-recommends install curl \
build-essential default-mysql-client git \
apt-transport-https ca-certificates gettext locales libsasl2-dev openssh-client \
libcurl4-gnutls-dev libxml2-dev libzip-dev zlib1g-dev libicu-dev netcat-traditional zip unzip \
libfreetype6-dev libpng-dev libjpeg62-turbo-dev jpegoptim optipng pngquant gifsicle procps && \
echo "=> Configuring and installing timezone/locale" && \
echo "Europe/Madrid" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-configure intl && \
docker-php-ext-install curl gettext pcntl mysqli exif pdo_mysql zip sockets gd intl && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
echo "es_ES.UTF-8 UTF-8" >> /etc/locale.gen && \
ln -fs /usr/share/zoneinfo/CET /etc/localtime && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
groupadd -g 1000 www && \
useradd -u 1000 -ms /bin/bash -g www www && \
chown -R www:www /code
USER www
# PHP cli + entrypoint
COPY ./docker/templates/entrypoint.sh /entrypoint.sh
COPY ./docker/templates/bash_aliases /home/www/.bash_aliases
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run-server"]
VOLUME /code