You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
755 B

FROM php:8.0-apache
RUN apt-get update && apt-get install -y \
vim
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions pdo_pgsql
RUN echo "ServerName 192.168.115.65" >> /etc/apache2/apache2.conf &&\
a2enmod rewrite &&\
a2dissite 000-default
COPY apache2.conf /etc/apache2/
COPY ports.conf /etc/apache2/
COPY . .
RUN a2enmod headers
RUN service apache2 restart
WORKDIR /var/www/html
COPY index.php index.php
RUN chmod -R 777 /var/www/html/
RUN chmod -R 777 /tmp
RUN chown -R www-data:www-data /var/www/html
EXPOSE 8081
EXPOSE 8090
EXPOSE 5432
ENTRYPOINT ["./inicia.sh"]