23 lines
506 B
Docker
23 lines
506 B
Docker
FROM registry.yaltik.net/odoocmd:yaltikc7
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
|
|
|
ENV ODOO_ADMIN_PASSWORD="admin" ODOO_DATABASES="demo"
|
|
|
|
USER root
|
|
RUN yum install -y gettext cronie curl && yum clean all
|
|
|
|
USER odoo
|
|
|
|
COPY crontab /home/odoo/
|
|
COPY backup.template /home/odoo/
|
|
COPY hc.template /home/odoo/
|
|
COPY plan.py /home/odoo/
|
|
COPY launch.c7.sh /home/odoo/
|
|
|
|
RUN mkdir -p backups
|
|
# Avoid overlayfs bug with tail
|
|
VOLUME /var/log
|
|
VOLUME /home/odoo/backups
|
|
|
|
CMD ["bash", "launch.sh"]
|