mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 00:07:14 +00:00
28 lines
724 B
Docker
28 lines
724 B
Docker
# Use the official image for PHP and Apache
|
|
FROM php:7.4-apache
|
|
|
|
# Set the working directory to /var/www/html
|
|
WORKDIR /var/www/html
|
|
|
|
# Install system dependencies, including git and libxml2
|
|
RUN apt-get update && apt-get install -y \
|
|
libcurl4-openssl-dev \
|
|
libxml2-dev \
|
|
libzip-dev \
|
|
zlib1g-dev \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
default-mysql-client \
|
|
curl \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& docker-php-ext-install pdo_mysql \
|
|
&& docker-php-ext-install mysqli \
|
|
&& docker-php-ext-install gd \
|
|
&& docker-php-ext-install mbstring \
|
|
&& docker-php-ext-install zip \
|
|
&& docker-php-ext-install xml \
|
|
&& a2enmod rewrite
|
|
|
|
# Expose port 80
|
|
EXPOSE 80 |