summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-08-29 13:51:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-08-29 13:51:01 +0200
commit54e336be2cfa5c0298182d675b8ba785da850b52 (patch)
tree8c676dbf5d6fc029a068f2a6b7124e53b80dea55 /Dockerfile
parent20e317609d7c10923bbd257ef694963a473fce3d (diff)
parentece8a5d7e499f99c2171edbcf5e4dde455541912 (diff)
Merge branch 'sebastianrakel-issue-8_docker_sendmail' into dev
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 3e2c5d3a4..6a038898f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
FROM alpine:edge
MAINTAINER Sebastian Rakel <sebastian@devunit.eu>
-RUN apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing bash php7 py-pygments py2-pip imagemagick php7-gd nodejs composer php7-pdo_mysql php7-exif php7-ctype php7-session git php7-finfo
+RUN apk add --no-cache bash php7 py-pygments py2-pip imagemagick php7-gd nodejs composer php7-pdo_mysql php7-exif php7-ctype php7-session git php7-fileinfo msmtp
ENV FILEBIN_HOME_DIR /var/lib/filebin
ENV FILEBIN_DIR $FILEBIN_HOME_DIR/filebin
@@ -13,6 +13,8 @@ RUN chown filebin: -R $FILEBIN_HOME_DIR
RUN pip install ansi2html
+RUN sed -i 's+.*sendmail_path =.*+sendmail_path = "/usr/bin/msmtp -C ${FILEBIN_HOME_DIR}/msmtprc --logfile ${FILEBIN_HOME_DIR}/msmtp.log -a filebinmail -t"+' /etc/php7/php.ini
+
USER filebin
ADD docker/filebin_starter.sh $FILEBIN_HOME_DIR