2016-12-21 10:16:53 +01:00
|
|
|
FROM registry.yaltik.net/odoocmd:yaltik
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2016-10-05 08:56:58 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
ENV ODOO_ADMIN_PASSWORD="admin" ODOO_DATABASES="demo"
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
USER root
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN apt-get install -y --no-install-recommends cron gettext-base curl && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
USER odoo
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
COPY crontab /home/odoo/
|
|
|
|
COPY backup.template /home/odoo/
|
|
|
|
COPY hc.template /home/odoo/
|
|
|
|
COPY plan.py /home/odoo/
|
|
|
|
COPY launch.sh /home/odoo/
|
|
|
|
|
|
|
|
RUN mkdir -p backups
|
2017-11-22 16:36:03 +01:00
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
2016-10-05 08:56:58 +02:00
|
|
|
VOLUME /home/odoo/backups
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
CMD ["bash", "launch.sh"]
|