2020-09-30 09:30:02 +00:00
|
|
|
FROM alpine:3.12
|
2019-11-15 12:51:55 +00:00
|
|
|
EXPOSE 9000/tcp
|
|
|
|
|
2020-09-30 09:30:02 +00:00
|
|
|
RUN apk add --no-cache dcron php7 php7-fpm \
|
2019-11-15 12:51:55 +00:00
|
|
|
php7-pdo php7-gd php7-pgsql php7-pdo_pgsql php7-mbstring \
|
|
|
|
php7-intl php7-xml php7-curl php7-session \
|
|
|
|
php7-dom php7-fileinfo php7-json \
|
2020-04-26 10:27:02 +00:00
|
|
|
php7-pcntl php7-posix php7-zip php7-openssl \
|
2020-01-22 13:26:16 +00:00
|
|
|
git postgresql-client sudo
|
2019-11-15 12:51:55 +00:00
|
|
|
|
|
|
|
ADD startup.sh /
|
2020-01-23 09:00:03 +00:00
|
|
|
ADD updater.sh /
|
2019-11-15 18:18:49 +00:00
|
|
|
ADD index.php /
|
2020-09-30 09:30:02 +00:00
|
|
|
ADD dcron.sh /
|
|
|
|
ADD backup-database.sh /etc/periodic/weekly/backup-database
|
2019-11-15 12:51:55 +00:00
|
|
|
|
|
|
|
RUN sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf
|
2020-09-27 14:54:45 +00:00
|
|
|
RUN sed -i.bak 's/\(memory_limit =\) 128M/\1 256M/' /etc/php7/php.ini
|
2019-11-15 12:51:55 +00:00
|
|
|
|
2020-01-23 13:59:10 +00:00
|
|
|
RUN mkdir -p /var/www
|
2019-11-15 14:42:50 +00:00
|
|
|
|
2019-11-15 12:51:55 +00:00
|
|
|
CMD /startup.sh
|