aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 0bcaa9e7f1f21d89f861d0c3a77beb2d71b0ea5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.6

RUN groupadd -g 5123 cdb && \
    useradd -r -u 5123 -g cdb cdb

WORKDIR /home/cdb

COPY requirements.txt requirements.txt
RUN pip install -r ./requirements.txt
RUN pip install gunicorn

COPY utils utils
COPY app app
COPY migrations migrations
COPY config.cfg ./config.cfg

RUN chown cdb:cdb /home/cdb -R

USER cdb