Ir al contenido
Menú
Se marcó esta pregunta
1407 Vistas

Hello, I have a problem with images on the main screen after re-build docker container.

my steps:

1. Downloaded Source code, Enterprice Version

2. Added odoo.conf file:

admin_passwd = admin_passwd
db_host = db_host
db_port = db_port
db_user = db_user
db_password = db_password
addons_path = odoo/addons
load_language = EN

3. Created Dockerfile

FROM ubuntu:22.04

ENV TZ=Europe/Chisinau \
DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get upgrade -y

RUN apt-get install -y software-properties-common gcc wget && \
add-apt-repository -y ppa:deadsnakes/ppa

RUN apt-get install -y python3.10 python3.10-dev curl libxrender1 libfontconfig libxtst6 xz-utils \
libxrender1 fontconfig libxtst6 xfonts-75dpi xfonts-base xz-utils libjpeg-turbo8 libpq-dev build-essential autoconf \
libtool pkg-config idle-python2.7 libgle3 python3.10-distutils

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

RUN python3.10 -m pip install --upgrade pip

ENV PYTHONBUFFERED 1

RUN wget https://mirror.sit.fraunhofer.de/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb && \
dpkg -i libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb && apt install -f

RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb && \
dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb && apt install -f

WORKDIR /app

ADD . /app

COPY . /app

RUN python3.10 -m pip --no-cache-dir install -r requirements.txt

RUN python3.10 setup.py install

4. docker-compose.yml

version: "3.8"
services:
odoo:
build: .
container_name: odoo
command: bash -c "python3.10 setup/odoo -c /app/odoo.conf"
ports:
- "8069:8069"
depends_on:
- db
volumes:
- ./odoo:/var/lib/odoo
- ./config/odoo:/etc/odoo
- ./addons/odoo:/mnt/extra-addons

On the first docker compose up​ all is ok, but after making changes and do docker compose up --build​ icons on apps disapears


What is wrong?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 23
2523
0
jun 21
2500
1
may 20
7159
2
jun 17
8792
1
may 23
2774