contentdb/Dockerfile

20 lines
332 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
COPY requirements.txt requirements.txt
RUN pip install -r ./requirements.txt
RUN pip install gunicorn
COPY utils utils
2019-01-09 22:58:11 +01:00
COPY app app
COPY migrations migrations
COPY config.cfg ./config.cfg
RUN chown cdb:cdb /home/cdb -R
USER cdb