seafile-containerized/templates/Dockerfile.template

19 lines
713 B
Docker
Raw Normal View History

# -*- mode: dockerfile -*-
# This is a jinja2 template to generate the real Dockerfile to build the local image
FROM seafileorg/server:{{ seafile_version }}
2016-11-21 03:31:45 +00:00
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
2016-11-21 04:56:33 +00:00
# shared/ are ignored in .dockerignore
2016-11-21 03:31:45 +00:00
ADD . /app
2016-11-21 03:31:45 +00:00
RUN cp -rp /app/scripts /scripts && \
cp -rp /app/bootstrap /bootstrap && \
{%- if seafile_version <= '6.0.6' %}
2016-11-21 03:31:45 +00:00
cp /app/scripts/tmp/check_init_admin.py /opt/seafile/seafile-server-{{ seafile_version }}/check_init_admin.py && \
{%- endif %}
{%- if https %}
2016-11-21 03:31:45 +00:00
cp /app/bootstrap/generated/letsencrypt.cron /etc/cron.d/letsencrypt.cron && \
{%- endif %}
2016-11-25 04:33:10 +00:00
cp /app/bootstrap/generated/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf