dockerfiles/rainloop/Dockerfile

35 lines
804 B
Docker
Raw Normal View History

2022-08-16 18:01:04 +02:00
FROM php:7.4-fpm-alpine
RUN apk add --no-cache nginx
RUN 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 \
2022-08-16 18:01:04 +02:00
rainloop
2022-08-24 10:01:20 +02:00
RUN mkdir -p /var/www/rainloop
WORKDIR /var/www/rainloop
RUN curl -sL https://repository.rainloop.net/installer.php | php && \
2021-05-06 12:05:36 +02:00
mkdir -p /run/nginx /var/run && \
touch /var/run/nginx.pid && \
2022-08-16 18:01:04 +02:00
chown -R rainloop:rainloop /var/www/rainloop
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
echo "user=rainloop" >> /usr/local/etc/php-fpm.conf
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]