docker_images/odoo/backups/Dockerfile

26 lines
607 B
Docker
Raw Normal View History

FROM registry.yaltik.net/odoocmd:yaltik
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
2016-10-05 08:56:58 +02:00
ENV ODOO_ADMIN_PASSWORD="admin" ODOO_DATABASES="demo"
2016-10-05 08:56:58 +02:00
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends cron gettext-base curl && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER odoo
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
# Avoid overlayfs bug with tail
VOLUME /var/log
2016-10-05 08:56:58 +02:00
VOLUME /home/odoo/backups
2022-03-01 10:53:57 +01:00
USER root
CMD ["bash", "launch.sh"]