76 lines
2.1 KiB
Docker
76 lines
2.1 KiB
Docker
# <OOW> : Copy of https://github.com/odoo/odoo/blob/16.0/setup/package.dfdebian
|
|
|
|
FROM debian:bullseye
|
|
|
|
# 1. <OOW> Official Odoo Dockerfile.
|
|
# Removing: postgresql, locales, rsync
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update -qq && \
|
|
apt-get upgrade -qq -y && \
|
|
apt-get install -qq -y\
|
|
adduser \
|
|
dh-python \
|
|
packaging-dev \
|
|
postgresql-client \
|
|
python3 \
|
|
python3-babel \
|
|
python3-dateutil \
|
|
python3-decorator \
|
|
python3-docutils \
|
|
python3-gevent \
|
|
python3-pil \
|
|
python3-jinja2 \
|
|
python3-libsass \
|
|
python3-lxml \
|
|
python3-ofxparse \
|
|
python3-passlib \
|
|
python3-polib \
|
|
python3-psutil \
|
|
python3-psycopg2 \
|
|
python3-pydot \
|
|
python3-openssl \
|
|
python3-pypdf2 \
|
|
python3-qrcode \
|
|
python3-renderpm \
|
|
python3-reportlab \
|
|
python3-requests \
|
|
python3-serial \
|
|
python3-setuptools \
|
|
python3-stdnum \
|
|
python3-tz \
|
|
python3-usb \
|
|
python3-vobject \
|
|
python3-werkzeug \
|
|
python3-xlsxwriter \
|
|
python3-zeep \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# 2. <OOW> Add 2 python dependency files and 1 debian dependency file
|
|
|
|
COPY ./src/odoo/requirements.txt /odoo_python_requirements.txt
|
|
COPY extra_python_requirements.txt /extra_python_requirements.txt
|
|
COPY extra_debian_requirements.txt /extra_debian_requirements.txt
|
|
|
|
# 3. <OOW> Install Debian packages
|
|
RUN apt-get update || true \
|
|
&& apt-get install -y\
|
|
# <OOW> To allow to run pip install
|
|
python3-pip\
|
|
# <OOW> For python-ldap
|
|
libldap2-dev ldap-utils libsasl2-dev\
|
|
&& xargs apt-get install -y --no-install-recommends <extra_debian_requirements.txt \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# 4. <OOW> Install Python librairies
|
|
RUN python3 -m pip install --no-cache-dir -r /odoo_python_requirements.txt
|
|
RUN python3 -m pip install --no-cache-dir -r /extra_python_requirements.txt
|
|
|
|
# 5. <OOW> Get local user id and set it to the odoo user
|
|
ARG LOCAL_USER_ID
|
|
|
|
RUN useradd --uid $LOCAL_USER_ID odoo
|
|
|
|
USER odoo
|