2022-12-10 18:24:39 +01:00
|
|
|
FROM php:8.0-apache
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2023-08-26 22:41:02 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y git curl procps zip msmtp bsd-mailx sqlite3 && \
|
|
|
|
apt-get install -y imagemagick && \
|
2022-12-10 18:24:39 +01:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2023-08-26 19:36:10 +02:00
|
|
|
RUN a2enmod rewrite
|
2023-08-26 22:41:02 +02:00
|
|
|
RUN docker-php-ext-install pdo pdo_mysql bcmath
|
|
|
|
|
2022-12-10 18:24:39 +01:00
|
|
|
COPY .docker /_docker
|
|
|
|
|
2023-08-27 01:13:47 +02:00
|
|
|
RUN chmod +Xx /_docker/run.sh && \
|
2023-08-26 19:36:10 +02:00
|
|
|
chmod +Xx /_docker/init.sh
|
2022-12-10 18:24:39 +01:00
|
|
|
|
2023-08-27 01:13:47 +02:00
|
|
|
COPY ./www /var/www/html
|
|
|
|
COPY ./DOCKER_GIT_INFO /DOCKER_GIT_INFO
|
|
|
|
|
|
|
|
RUN chmod a+r /DOCKER_GIT_INFO
|
2023-08-26 22:41:02 +02:00
|
|
|
|
|
|
|
# MapVolumes for: /var/www/html/config.php [ro]
|
|
|
|
# MapVolumes for: /var/www/html/dynamic [rw]
|
|
|
|
# MapVolumes for: /var/www/html/data/dynamic [rw]
|
|
|
|
# MapVolumes for: /var/www/html/data/binaries [ro]
|
2022-12-10 18:24:39 +01:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2023-08-27 01:13:47 +02:00
|
|
|
ENTRYPOINT ["/_docker/run.sh"]
|
|
|
|
CMD []
|
2022-12-10 18:24:39 +01:00
|
|
|
|