contentdb/Dockerfile

22 lines
666 B
Docker
Raw Normal View History

2022-01-27 19:43:10 +01:00
FROM python:3.10
RUN groupadd -g 5123 cdb && \
useradd -r -u 5123 -g cdb cdb
2019-01-09 22:58:11 +01:00
WORKDIR /home/cdb
2020-01-18 02:20:32 +01:00
RUN mkdir /var/cdb
RUN chown -R cdb:cdb /var/cdb
2020-07-16 15:26:26 +02:00
COPY requirements.lock.txt requirements.lock.txt
2022-02-20 09:06:34 +01:00
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
2020-07-16 15:26:26 +02:00
RUN pip install -r requirements.lock.txt
2019-01-09 22:58:11 +01:00
RUN pip install gunicorn
2022-02-20 09:06:34 +01:00
RUN pip3 install pycairo PyGObject
COPY utils utils
2020-01-18 02:20:32 +01:00
COPY config.cfg config.cfg
COPY migrations migrations
COPY app app
2022-01-07 20:42:52 +01:00
COPY translations translations
RUN pybabel compile -d translations
2020-01-18 02:20:32 +01:00
RUN chown -R cdb:cdb /home/cdb
2022-02-20 09:06:34 +01:00
USER cdb