30 lines
689 B
Docker
30 lines
689 B
Docker
FROM php:8.3-fpm
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
mariadb-client \
|
|
iproute2 \
|
|
iputils-ping \
|
|
net-tools \
|
|
dnsutils \
|
|
openssh-client \
|
|
openssl \
|
|
unzip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN docker-php-ext-install pdo pdo_mysql
|
|
|
|
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
|
RUN install-php-extensions zip mbstring xml curl
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
# Copy vendor from host (pre-installed with correct PHP version)
|
|
COPY vendor/ vendor/
|
|
COPY composer.json composer.lock ./
|
|
|
|
RUN mkdir -p storage/logs storage/scans storage/reports \
|
|
&& chown -R www-data:www-data storage
|
|
|
|
EXPOSE 9000
|
|
CMD ["php-fpm"]
|