mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-17 09:15:24 +00:00
9c3fdcae32
* didn't use launcher * travis * link error & update readme * del launcher.ps1, del bootstrap func under launcher file * [readme] password/plan b, add a new admin * review
19 lines
714 B
Docker
19 lines
714 B
Docker
# -*- mode: dockerfile -*-
|
|
# This is a jinja2 template to generate the real Dockerfile to build the local image
|
|
FROM seafileltd/seafile:{{ seafile_version }}
|
|
|
|
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|
|
|
|
# shared/ are ignored in .dockerignore
|
|
ADD . /app
|
|
|
|
RUN cp -rp /app/scripts /scripts && \
|
|
cp -rp /app/bootstrap /bootstrap && \
|
|
{%- if seafile_version <= '6.0.6' %}
|
|
cp /app/scripts/tmp/check_init_admin.py /opt/seafile/seafile-server-{{ seafile_version }}/check_init_admin.py && \
|
|
{%- endif %}
|
|
{%- if https %}
|
|
cp /app/bootstrap/generated/letsencrypt.cron /etc/cron.d/letsencrypt.cron && \
|
|
{%- endif %}
|
|
cp /app/bootstrap/generated/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
|