This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
47 lines (37 loc) · 1.61 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
FROM phusion/baseimage:0.9.18
MAINTAINER [email protected]
ENV SEAFILE_VERSION 6.3.7
EXPOSE 8082 8000
VOLUME /seafile
WORKDIR /seafile
# Required packages for pro edition
# Taken from https://manual.seafile.com/deploy_pro/download_and_setup_seafile_professional_server.html
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
openjdk-7-jre \
poppler-utils libpython2.7 python-pip python-setuptools python-imaging python-mysqldb python-memcache python-ldap python-urllib3 \
sqlite3 wget \
libreoffice libreoffice-script-provider-python \
fonts-vlgothic ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
pip install boto
# Download seafile binary
# List of binaries are here: https://download.seafile.com/d/6e5297246c/files/?p=/pro/
RUN wget "https://download.seafile.com/d/6e5297246c/files/?p=/pro/seafile-pro-server_${SEAFILE_VERSION}_x86-64.tar.gz&dl=1" -O "/seafile-pro-server_${SEAFILE_VERSION}_x86-64.tar.gz"
# Add seafile service.
ADD service/seafile/run.sh /etc/service/seafile/run
ADD service/seafile/stop.sh /etc/service/seafile/stop
# Add seahub service
ADD service/seahub/run.sh /etc/service/seahub/run
ADD service/seahub/stop.sh /etc/service/seahub/stop
# Custom configuration
COPY config/seafevents.conf /seafevents.conf
# Custom scripts
ADD bin/setup.sh /usr/local/sbin/setup
ADD bin/upgrade.sh /usr/local/sbin/upgrade
# Set permissions
RUN chmod +x /usr/local/sbin/setup && \
chmod +x /usr/local/sbin/upgrade && \
chmod +x /etc/service/seafile/* && \
chmod +x /etc/service/seahub/*
CMD /sbin/my_init