46 lines
1010 B
Docker
46 lines
1010 B
Docker
FROM php:8.5-fpm-bullseye
|
|
|
|
# System-Abhängigkeiten
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
curl \
|
|
nginx \
|
|
nmap \
|
|
supervisor \
|
|
libzip-dev \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
libxml2-dev \
|
|
zip \
|
|
unzip \
|
|
default-mysql-client \
|
|
&& docker-php-ext-install pdo_mysql mbstring zip bcmath \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Node.js 20
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
&& apt-get install -y nodejs \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Composer
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
|
|
# Arbeitsverzeichnis
|
|
WORKDIR /var/www/html
|
|
|
|
# Konfigurationsdateien
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Log-Verzeichnisse anlegen
|
|
RUN mkdir -p /var/log/supervisor
|
|
|
|
# Port freigeben
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|