mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 14:02:24 +01:00
20 lines
332 B
Docker
20 lines
332 B
Docker
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
|