28 lines
578 B
Docker
28 lines
578 B
Docker
FROM odoo:18
|
|
|
|
USER root
|
|
|
|
# Install extra system packages if needed
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
python3-pip \
|
|
python3-dev \
|
|
build-essential \
|
|
libldap2-dev \
|
|
libsasl2-dev \
|
|
libssl-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy Odoo source requirements
|
|
#COPY ./odoo18/requirements.txt /tmp/requirements.txt
|
|
|
|
# Install Python dependencies
|
|
#RUN pip3 install --break-system-packages -r /tmp/requirements.txt
|
|
|
|
# Create working directory
|
|
WORKDIR /opt/odoo
|
|
|
|
USER odoo
|
|
|
|
CMD ["python3", "/opt/odoo/odoo-bin", "-c", "/etc/odoo/odoo.conf"]
|