2023-09-02 21:33:16 +01:00
|
|
|
FROM python:3.10.11
|
2019-01-09 21:58:11 +00:00
|
|
|
|
2019-11-14 22:53:46 +00:00
|
|
|
RUN groupadd -g 5123 cdb && \
|
|
|
|
useradd -r -u 5123 -g cdb cdb
|
|
|
|
|
2019-01-09 21:58:11 +00:00
|
|
|
WORKDIR /home/cdb
|
|
|
|
|
2020-01-18 01:20:32 +00:00
|
|
|
RUN mkdir /var/cdb
|
|
|
|
RUN chown -R cdb:cdb /var/cdb
|
|
|
|
|
2020-07-16 14:26:26 +01:00
|
|
|
COPY requirements.lock.txt requirements.lock.txt
|
|
|
|
RUN pip install -r requirements.lock.txt
|
2019-01-09 21:58:11 +00:00
|
|
|
RUN pip install gunicorn
|
|
|
|
|
2019-11-14 22:24:37 +00:00
|
|
|
COPY utils utils
|
2020-01-18 01:20:32 +00:00
|
|
|
COPY config.cfg config.cfg
|
2019-11-15 23:51:42 +00:00
|
|
|
COPY migrations migrations
|
|
|
|
COPY app app
|
2022-01-07 19:42:52 +00:00
|
|
|
COPY translations translations
|
2019-11-14 22:53:46 +00:00
|
|
|
|
2022-01-07 19:42:52 +00:00
|
|
|
RUN pybabel compile -d translations
|
2020-01-18 01:20:32 +00:00
|
|
|
RUN chown -R cdb:cdb /home/cdb
|
|
|
|
|
2019-11-14 22:53:46 +00:00
|
|
|
USER cdb
|