2016-11-15 08:59:02 +00:00
|
|
|
# -*- mode: dockerfile -*-
|
|
|
|
# This is a jinja2 template to generate the real Dockerfile to build the local image
|
|
|
|
FROM seafileorg/server:{{ seafile_version }}
|
|
|
|
|
|
|
|
ADD scripts /scripts
|
|
|
|
|
|
|
|
ADD bootstrap /bootstrap
|
|
|
|
|
2016-11-16 07:41:08 +00:00
|
|
|
{%- if seafile_version <= '6.0.6' %}
|
2016-11-15 08:59:02 +00:00
|
|
|
ADD scripts/tmp/check_init_admin.py /opt/seafile/seafile-server-{{ seafile_version }}/check_init_admin.py
|
2016-11-16 07:41:08 +00:00
|
|
|
{%- endif %}
|
2016-11-15 08:59:02 +00:00
|
|
|
|
2016-11-16 07:41:08 +00:00
|
|
|
{%- if https %}
|
2016-11-21 03:25:56 +00:00
|
|
|
ADD bootstrap/generated/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
|
2016-11-16 07:41:08 +00:00
|
|
|
ADD bootstrap/generated/letsencrypt.cron /etc/cron.d/letsencrypt.cron
|
|
|
|
{%- endif %}
|
2016-11-15 08:59:02 +00:00
|
|
|
|
|
|
|
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|