FROM python:3.10 RUN groupadd -g 5123 cdb && \ useradd -r -u 5123 -g cdb cdb WORKDIR /home/cdb RUN mkdir /var/cdb RUN chown -R cdb:cdb /var/cdb COPY requirements.lock.txt requirements.lock.txt RUN apt update RUN apt install -y vim RUN apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 RUN apt install -y libappstream-glib-dev RUN pip install -r requirements.lock.txt RUN pip install gunicorn RUN pip3 install pycairo PyGObject COPY utils utils COPY config.cfg config.cfg COPY migrations migrations COPY app app COPY translations translations RUN pybabel compile -d translations RUN chown -R cdb:cdb /home/cdb USER cdb