opentrashmail/docker/Dockerfile

28 lines
795 B
Docker
Raw Normal View History

2019-08-16 12:12:16 +00:00
FROM alpine:3.10
2019-09-29 09:53:07 +00:00
RUN apk add --no-cache python socat wget php7-fileinfo php7-session curl git php php-curl nginx php-openssl php-mbstring php-json php-gd php-dom php-fpm
2019-08-16 12:12:16 +00:00
#RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN mkdir -p /var/www
WORKDIR /var/www
ADD rootfs/start.sh /etc/start.sh
RUN chmod +x /etc/start.sh
RUN git clone https://github.com/HaschekSolutions/opentrashmail.git
# nginx stuff
ADD rootfs/nginx.conf /etc/nginx/conf.d/default.conf
RUN mkdir -p /run/nginx
RUN mkdir -p /var/log/nginx
RUN sed -i 's/nobody/nginx/g' /etc/php7/php-fpm.d/www.conf
WORKDIR /var/www/opentrashmail
# Volumes to mount
#VOLUME /var/lib/influxdb
VOLUME /var/www/opentrashmail/data
EXPOSE 80 25
#CMD ["/bin/ash"]
ENTRYPOINT ["/etc/start.sh"]