Initial commit. Version 2.17.0.
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2022-07-29 10:52:25 +05:00
commit bd2ce1ea0b
14 changed files with 2302 additions and 0 deletions

43
Dockerfile Normal file
View File

@@ -0,0 +1,43 @@
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
# 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 && \
wget https://github.com/the-djmaze/snappymail/releases/download/v2.17.0/snappymail-2.17.0.zip && \
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"]