Files
sternwarte/sternwarte/DOCKER/php/Dockerfile

26 lines
1007 B
Docker

FROM arm64v8/php:8.2-fpm
RUN apt-get update &&\
apt-get install -y locales &&\
locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8'
ENV LC_ALL='en_US.UTF-8'
ENV LANGUAGE='en_US.UTF-8'
# configure PHP environment and apache modules
RUN docker-php-ext-install mysqli pdo pdo_mysql
# RUN cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
# mail() calls in PHP should end up in mhsendmail, which sends the mails to the mailhog container
#RUN apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git &&\
# rm -rf /var/lib/apt/lists/*
#RUN curl -Lsf 'https://storage.googleapis.com/golang/go1.20.1.darwin-arm64.tar.gz' | tar -C '/usr/local' -xvzf -
#ENV PATH /usr/local/go/bin:$PATH
#RUN go get github.com/mailhog/mhsendmail
#RUN cp /root/go/bin/mhsendmail /usr/bin/mhsendmail
#RUN echo 'sendmail_path = /usr/bin/mhsendmail --smtp-addr mailhog:1025' >> /usr/local/etc/php/php.ini