dockerfiles/rainloop/Dockerfile

39 lines
968 B
Docker
Raw Normal View History

2022-03-07 13:55:05 +01:00
FROM alpine:3.14
2021-05-05 20:32:53 +02:00
RUN apk add --no-cache \
nginx \
curl \
php7-fpm \
php7 \
php7-curl \
php7-iconv \
php7-json \
2021-05-06 12:05:36 +02:00
php7-openssl \
2021-05-05 20:32:53 +02:00
php7-dom && \
2021-05-06 12:05:36 +02:00
mkdir -p /var/www/rainloop && \
cd /var/www/rainloop && \
curl -sL https://repository.rainloop.net/installer.php | php && \
sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf && \
addgroup \
2021-05-05 20:32:53 +02:00
--gid 10001 \
rainloop && \
adduser \
--uid 10000 \
2021-05-06 12:05:36 +02:00
--home /var/www/rainloop \
2021-05-05 20:32:53 +02:00
--ingroup rainloop \
--disabled-password \
--shell /sbin/nologin \
rainloop && \
2021-05-06 12:05:36 +02:00
mkdir -p /run/nginx /var/run && \
touch /var/run/nginx.pid && \
2021-05-05 20:32:53 +02:00
chown -R rainloop:rainloop \
2021-05-06 12:05:36 +02:00
/var/www/rainloop \
2021-05-05 20:32:53 +02:00
/var/log/php7 \
/var/lib/nginx \
/var/log/nginx \
2021-05-06 12:05:36 +02:00
/run/nginx \
/var/run/nginx.pid
2021-05-05 20:32:53 +02:00
USER rainloop
2021-05-06 12:05:36 +02:00
WORKDIR /var/www/rainloop