2019-01-09 23:29:05 +01:00
|
|
|
FROM python:3.6
|
2019-01-09 22:58:11 +01:00
|
|
|
|
2019-11-14 23:53:46 +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
|
|
|
|
|
2019-11-14 23:24:37 +01:00
|
|
|
COPY utils utils
|
2019-01-28 21:48:07 +01:00
|
|
|
COPY config.cfg ./config.cfg
|
2019-11-16 00:51:42 +01:00
|
|
|
COPY migrations migrations
|
|
|
|
COPY app app
|
2019-11-14 23:53:46 +01:00
|
|
|
|
2019-11-16 00:51:42 +01:00
|
|
|
RUN mkdir /home/cdb/app/public/uploads/
|
2019-11-14 23:53:46 +01:00
|
|
|
RUN chown cdb:cdb /home/cdb -R
|
|
|
|
USER cdb
|