mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Improve local Dockerfile.
This commit is contained in:
parent
500e8a9d15
commit
3a61ff2eb4
|
@ -22,7 +22,7 @@ if [[ ! -d /var/lib/mysql/mysql ]]; then
|
|||
sleep 1
|
||||
done
|
||||
|
||||
echo 'Setting root password to root'
|
||||
echo 'Fixing root password'
|
||||
/usr/bin/mysqladmin -u root password ''
|
||||
|
||||
# if [ -d /var/lib/mysql/setup ]; then
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
# 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
|
||||
|
||||
{%- if seafile_version <= '6.0.6' %}
|
||||
ADD scripts/tmp/check_init_admin.py /opt/seafile/seafile-server-{{ seafile_version }}/check_init_admin.py
|
||||
{%- endif %}
|
||||
|
||||
{%- if https %}
|
||||
ADD bootstrap/generated/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
|
||||
ADD bootstrap/generated/letsencrypt.cron /etc/cron.d/letsencrypt.cron
|
||||
{%- endif %}
|
||||
|
||||
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|
||||
|
||||
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/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf && \
|
||||
cp /app/bootstrap/generated/letsencrypt.cron /etc/cron.d/letsencrypt.cron && \
|
||||
{%- endif %}
|
||||
echo "Done"
|
||||
|
|
Loading…
Reference in a new issue