easyimages / Dockerfile
Surbao's picture
Update Dockerfile
f8ee75b verified
raw
history blame
764 Bytes
FROM php:8.2-apache
RUN apt-get update && apt-get install -y \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libonig-dev \
libxml2-dev \
zip \
git \
unzip \
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
RUN git clone https://github.com/icret/EasyImages2.0.git /var/www/html
WORKDIR /var/www/html
RUN chmod -R 755 /var/www
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 777 /var/www/html/i
RUN groupadd www
RUN useradd -m -u 1000 user
RUN chown -R user /var/www/html
RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf \
&& sed -i 's/<VirtualHost \*:80>/<VirtualHost \*:7860>/' /etc/apache2/sites-available/000-default.conf
EXPOSE 7860
CMD ["apache2-foreground"]