loreakasmatzen_docker/Dockerfile

29 lines
707 B
Docker
Raw Permalink Normal View History

2022-11-09 20:19:30 +01:00
FROM debian:bullseye-slim
RUN apt update && apt -y upgrade
RUN apt -y install apt-transport-https lsb-release ca-certificates curl gnupg && \
curl https://packages.sury.org/php/apt.gpg | apt-key add - && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
apt update
RUN apt install -y \
apache2 libapache2-mod-php5.6 \
php5.6-gd php5.6-curl php5.6-mcrypt php5.6-imagick php5.6-json php5.6-xsl php5.6-mysql php5.6-apcu php5.6-common
RUN a2enmod proxy*
RUN a2enmod rewrite
RUN rm -rf /var/www/html/*
COPY data/ /var/www/html/
RUN chown -R www-data:www-data /var/www/
ADD entrypoint.sh /entrypoint.sh
2022-11-09 20:19:30 +01:00
EXPOSE 80
ENTRYPOINT /entrypoint.sh