-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
50 lines (37 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM phusion/baseimage
MAINTAINER Alessandro Viganò
#EXPOSE 10001 12001 8000 8082
ENV SERVER_NAME example
ENV SERVER_ADDR seafile.example.com
ENV ADMIN_EMAIL [email protected]
ENV ADMIN_PASSWORD changeme!
RUN mkdir /opt/seafile
WORKDIR /opt/seafile
RUN curl -L -O https://bitbucket.org/haiwen/seafile/downloads/seafile-server_2.1.5_x86-64.tar.gz
RUN tar xzf seafile-server_*
RUN mkdir installed
RUN mv seafile-server_* installed
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y python2.7-mysqldb python-setuptools python-simplejson python-imaging sqlite3 && \
apt-get install -y dnsmasq
RUN apt-get install -y tmux
#DNSMASQ SERVICE
RUN mkdir /etc/service/dnsmasq
ADD dnsmasq.sh /etc/service/dnsmasq/run
#SEAFILE SERVICES
RUN mkdir /etc/service/seafile
ADD seafilestart.sh /etc/service/seafile/run
ADD seafilestop.sh /etc/service/seafile/stop
RUN touch /etc/service/seafile/down
RUN mkdir /etc/service/seahub
ADD seahubstart.sh /etc/service/seahub/run
ADD seahubstop.sh /etc/service/seahub/stop
RUN touch /etc/service/seahub/down
RUN mkdir /opt/seafile/logs
VOLUME /opt/seafile
VOLUME /etc/service/seafile
VOLUME /etc/service/seahub
ADD bootstrap.sh /usr/local/bin/bootstrap
CMD /sbin/my_init
EXPOSE 22