snappymail/Dockerfile

44 lines
919 B
Docker
Raw Normal View History

2022-07-30 00:10:06 +05:00
FROM code.pztrn.name/containers/mirror/alpine:3.16.1
2022-07-29 10:52:25 +05:00
# Install necessary things
RUN apk add --no-cache \
git \
nginx \
php8-curl \
php8-dom \
php8-fpm \
php8-iconv \
php8-json \
php8-mbstring \
php8-openssl \
php8-pdo_mysql \
php8-pdo_pgsql \
php8-pdo_sqlite \
php8-xml \
s6 \
unzip \
wget && \
rm /etc/php8/php-fpm.d/www.conf
# Get rainloop.
RUN mkdir -p /var/www/snappymail && \
cd /var/www/snappymail && \
2023-03-25 14:16:00 +05:00
wget https://github.com/the-djmaze/snappymail/releases/download/v2.26.4/snappymail-2.26.4.zip && \
2022-07-29 10:52:25 +05:00
ls -la && \
unzip snappymail-*.zip && \
chown -R nginx:nginx /var/www/snappymail && \
rm *.zip
# Configure container
COPY configs/ /etc/
# Configure s6.
RUN chmod -R +x /etc/s6/* \
&& chmod +x /etc/s6/.s6-svscan/finish
EXPOSE 80
VOLUME [ "/var/www/snappymail/data" ]
ENTRYPOINT ["/bin/s6-svscan", "/etc/s6"]