]> git.lizzy.rs Git - cheatdb.git/blob - Dockerfile
Fix CDB running as root in docker container
[cheatdb.git] / Dockerfile
1 FROM python:3.6
2
3 RUN groupadd -g 5123 cdb && \
4     useradd -r -u 5123 -g cdb cdb
5
6 WORKDIR /home/cdb
7
8 COPY requirements.txt requirements.txt
9 RUN pip install -r ./requirements.txt
10 RUN pip install gunicorn
11
12 COPY utils utils
13 COPY app app
14 COPY migrations migrations
15 COPY config.cfg ./config.cfg
16
17 RUN chown cdb:cdb /home/cdb -R
18
19 USER cdb