forked from sauloaldocker/docker-rainloop
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·37 lines (29 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM debian:8.5
MAINTAINER Giulio De Pasquale <[email protected]>
ENV RELEASE jessie
ENV DEBIAN_FRONTEND noninteractive
ENV SHELL /bin/bash
RUN apt-get update && apt-get install -y curl openssl nginx php5-fpm php5-curl php5-sqlite php5-json unzip
# Adding files
ADD . /docker
RUN mkdir -p /webapps/rainloop /webapps/logs/rainloop && \
cd /tmp && \
curl -R -L -O "http://repository.rainloop.net/v2/webmail/rainloop-latest.zip" && \
unzip rainloop-latest.zip -d /webapps/rainloop && \
find /webapps/rainloop -type d -exec chmod 755 {} \; && \
find /webapps/rainloop -type f -exec chmod 644 {} \; && \
chown -R www-data:www-data /webapps/rainloop && \
cp -f /docker/assets/conf/nginx.conf /etc/nginx/nginx.conf && \
cp -f /docker/assets/conf/nginx-rainloop.conf /etc/nginx/sites-available/rainloop.conf && \
ln -s /etc/nginx/sites-available/rainloop.conf /etc/nginx/sites-enabled/rainloop.conf && \
sed -i 's/;daemonize = yes/daemonize = no/g' /etc/php5/fpm/php-fpm.conf
VOLUME /webapps/rainloop/data
## "Configure services"
# Based on https://github.com/mingfang/docker-salt
RUN mkdir /etc/service && \
for dir in /docker/services/*;\
do echo $dir; chmod +x $dir/run;\
ln -sf $dir /etc/service/; done
ENTRYPOINT /etc/service/nginx/run && /etc/service/php5-fpm/run
# Expose services
EXPOSE 443