Files
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

54 lines
1.3 KiB
Docker

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV APACHE_RUN_USER=www-data
ENV APACHE_RUN_GROUP=www-data
ENV TZ="America/Sao_Paulo"
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
ca-certificates \
curl \
wget \
lsof \
supervisor \
zip \
unzip \
apache2 \
php7.4 \
php7.4-mysql \
php7.4-interbase \
php7.4-mbstring \
php7.4-xml \
php7.4-zip \
php7.4-gd \
php7.4-curl
RUN a2enmod rewrite
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb \
&& apt-get install -y ./wkhtmltox_0.12.6-1.focal_amd64.deb --no-install-recommends \
&& rm -rf wkhtmltox_0.12.6-1.focal_amd64.deb
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"
RUN apt-get autoremove -y \
&& apt-get clean
RUN rm -rf /var/www/* \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/provisioning*
RUN ln -sf /dev/stdout /var/log/apache2/access.log \
&& ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log \
&& ln -sf /dev/stderr /var/log/apache2/error.log
RUN echo "umask 0003" >> /etc/bash.bashrc
WORKDIR /var/www
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]