contentdb/Dockerfile

23 lines
378 B
Docker
Raw Normal View History

2019-01-09 23:29:05 +01:00
FROM python:3.6
2019-01-09 22:58:11 +01:00
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
2019-01-09 22:58:11 +01:00
COPY requirements.txt requirements.txt
2020-01-18 02:20:32 +01:00
RUN pip install -r requirements.txt
2019-01-09 22:58:11 +01:00
RUN pip install gunicorn
COPY utils utils
2020-01-18 02:20:32 +01:00
COPY config.cfg config.cfg
COPY migrations migrations
COPY app app
2020-01-18 02:20:32 +01:00
RUN chown -R cdb:cdb /home/cdb
USER cdb