26 lines
467 B
Docker
26 lines
467 B
Docker
FROM registry.yaltik.net/odoocmd:yaltik
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
ENV ODOO_ADMIN_PASSWORD admin
|
|
ENV ODOO_DATABASES demo
|
|
|
|
WORKDIR /home/odoo
|
|
USER root
|
|
|
|
RUN mkdir backups
|
|
RUN apt-get install -y --no-install-recommends cron gettext-base
|
|
|
|
# Avoid overlayfs bug with tail
|
|
VOLUME /var/log
|
|
|
|
COPY crontab ./crontab
|
|
|
|
COPY backup.template .
|
|
COPY plan.py .
|
|
COPY launch.sh .
|
|
|
|
RUN chown -R odoo:odoo .
|
|
VOLUME /home/odoo/backups
|
|
|
|
CMD bash launch.sh
|