[FIX] builds with openupgradelib

This commit is contained in:
Jared Kipe
2020-10-30 10:09:39 -07:00
parent 157e1219cf
commit f42328fc6f
2 changed files with 24 additions and 2 deletions

View File

@@ -1,7 +1,18 @@
FROM hibou/hibou-odoo:12.0
# All this just for openupgradelib
USER 0
RUN pip install git+git://github.com/OCA/openupgradelib.git
RUN set -x; \
apt update && apt install -y git \
&& pip install git+git://github.com/OCA/openupgradelib.git \
# Clean Up
&& apt remove -y git \
&& apt autoremove -y \
&& rm -rf /root/.cache \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
;
USER 104
COPY --chown=104 . /opt/odoo/hibou-suite

View File

@@ -1,7 +1,18 @@
FROM registry.gitlab.com/hibou-io/hibou-odoo/odoo:RELEASE
# All this just for openupgradelib
USER 0
RUN pip install git+git://github.com/OCA/openupgradelib.git
RUN set -x; \
apt update && apt install -y git \
&& pip install git+git://github.com/OCA/openupgradelib.git \
# Clean Up
&& apt remove -y git \
&& apt autoremove -y \
&& rm -rf /root/.cache \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
;
USER 104
COPY --chown=104 . /opt/odoo/hibou-suite