contentdb/Dockerfile

25 lines
461 B
Docker
Raw Normal View History

2022-01-27 10:43:10 -08:00
FROM python:3.10
2019-01-09 13:58:11 -08:00
RUN groupadd -g 5123 cdb && \
useradd -r -u 5123 -g cdb cdb
2019-01-09 13:58:11 -08:00
WORKDIR /home/cdb
2020-01-17 17:20:32 -08:00
RUN mkdir /var/cdb
RUN chown -R cdb:cdb /var/cdb
2020-07-16 06:26:26 -07:00
COPY requirements.lock.txt requirements.lock.txt
RUN pip install -r requirements.lock.txt
2019-01-09 13:58:11 -08:00
RUN pip install gunicorn
COPY utils utils
2020-01-17 17:20:32 -08:00
COPY config.cfg config.cfg
COPY migrations migrations
COPY app app
2022-01-07 11:42:52 -08:00
COPY translations translations
2022-01-07 11:42:52 -08:00
RUN pybabel compile -d translations
2020-01-17 17:20:32 -08:00
RUN chown -R cdb:cdb /home/cdb
USER cdb