This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
forked from alvistar/seafile-docker
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
55 lines (43 loc) · 1.53 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
51
52
53
54
FROM phusion/baseimage
# Initially was based on work of Alessandro Viganò
MAINTAINER Andreas Löffler <[email protected]>
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y ca-certificates \
nginx \
python2.7 python-flup python-imaging python-mysqldb python-setuptools \
sqlite3 dnsmasq
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_4.1.2_x86-64.tar.gz
RUN tar xzf seafile-server_*
RUN mkdir installed
RUN mv seafile-server_* installed
# Install DnsMasq service.
RUN mkdir /etc/service/dnsmasq
ADD service-dnsmasq.sh /etc/service/dnsmasq/run
# Install Seafile service.
RUN mkdir /etc/service/seafile
ADD service-seafile-run.sh /etc/service/seafile/run
ADD service-seafile-stop.sh /etc/service/seafile/stop
# Install Seahub service.
RUN mkdir /etc/service/seahub
ADD service-seahub-run.sh /etc/service/seahub/run
ADD service-seahub-stop.sh /etc/service/seahub/stop
# Install Nginx.
RUN mkdir /etc/service/nginx
ADD service-nginx.sh /etc/service/nginx/run
ADD seafile-nginx.conf /etc/nginx/sites-available/seafile
# Expose needed ports.
EXPOSE 10001 12001 8000 8082
RUN mkdir /opt/seafile/logs
VOLUME /etc
VOLUME /opt/seafile
VOLUME /etc/service/seafile
VOLUME /etc/service/seahub
ADD bootstrap-data.sh /usr/local/sbin/bootstrap
CMD /sbin/my_init