-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (27 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM php:8.1-apache
MAINTAINER hacklab/ <contato@hacklab.com.br>
RUN a2enmod remoteip rewrite expires \
&& apt-get update \
&& apt-get install -y libpng-dev libjpeg-dev libmemcached-dev libmcrypt-dev unzip nano vim less libzip-dev \
&& docker-php-ext-configure gd --with-jpeg=/usr \
&& docker-php-ext-install calendar gd mysqli opcache zip \
&& printf "yes \n" | pecl install memcached\
&& printf "yes \n" | pecl install xdebug-beta\
&& printf "no \n" | pecl install apcu-beta\
&& echo 'extension=memcached.so' > /usr/local/etc/php/conf.d/pecl-memcached.ini \
&& echo 'extension=apcu.so' > /usr/local/etc/php/conf.d/pecl-apcu.ini \
&& curl -s -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
&& chmod 555 /usr/local/bin/composer \
&& apt-get purge -y libpng-dev libjpeg-dev libmemcached-dev libmcrypt-dev \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& { \
echo "file_uploads = On"; \
echo "upload_max_filesize = 2048M"; \
echo "post_max_size = 2048M"; \
echo "max_file_uploads = 20"; \
} > /usr/local/etc/php/conf.d/docker-uploads.ini
COPY root/ /
EXPOSE 80 443
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]