Fix production-deploy workflow: use array syntax for branches, remove if condition
This commit is contained in:
69
docker/ci/Dockerfile
Normal file
69
docker/ci/Dockerfile
Normal file
@@ -0,0 +1,69 @@
|
||||
# Dockerfile für CI/CD Workflows
|
||||
# Optimiert für Gitea Actions Runner mit PHP 8.5 und allen benötigten Tools
|
||||
FROM php:8.5.0RC3-cli
|
||||
|
||||
# System-Abhängigkeiten für CI/CD
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
unzip \
|
||||
zip \
|
||||
lsb-release \
|
||||
ca-certificates \
|
||||
apt-transport-https \
|
||||
jq \
|
||||
ansible \
|
||||
libzip-dev \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
libwebp-dev \
|
||||
libavif-dev \
|
||||
libxpm-dev \
|
||||
libsodium-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
libicu-dev \
|
||||
libonig-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Installiere PHP Extensions (CLI-Version)
|
||||
RUN docker-php-ext-configure gd \
|
||||
--with-freetype \
|
||||
--with-jpeg \
|
||||
--with-webp \
|
||||
&& docker-php-ext-install -j$(nproc) \
|
||||
zip \
|
||||
pdo_mysql \
|
||||
pdo_pgsql \
|
||||
pcntl \
|
||||
bcmath \
|
||||
mbstring \
|
||||
xml \
|
||||
intl \
|
||||
exif \
|
||||
soap \
|
||||
gd
|
||||
|
||||
# Installiere PECL Extensions
|
||||
RUN pecl install apcu redis-6.3.0RC1 \
|
||||
&& docker-php-ext-enable apcu redis
|
||||
|
||||
# Configure APCu
|
||||
RUN echo "apc.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini \
|
||||
&& echo "apc.shm_size=128M" >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
|
||||
|
||||
# Composer installieren
|
||||
RUN curl -sS https://getcomposer.org/installer | php \
|
||||
&& mv composer.phar /usr/local/bin/composer \
|
||||
&& chmod +x /usr/local/bin/composer
|
||||
|
||||
# Arbeitsverzeichnis
|
||||
WORKDIR /workspace
|
||||
|
||||
# Standard-User für CI (UID/GID 1000)
|
||||
RUN groupadd -g 1000 ci && useradd -u 1000 -g ci -m ci
|
||||
|
||||
# Stelle sicher, dass alle benötigten Tools verfügbar sind
|
||||
RUN php -v && composer --version && git --version && jq --version
|
||||
Reference in New Issue
Block a user