mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-08 08:33:45 +01:00
aa87bee014
Python 3.10.12 and above causes threading issues (ex: "getaddrinfo() thread failed to start")
25 lines
464 B
Docker
25 lines
464 B
Docker
FROM python:3.10.11
|
|
|
|
RUN groupadd -g 5123 cdb && \
|
|
useradd -r -u 5123 -g cdb cdb
|
|
|
|
WORKDIR /home/cdb
|
|
|
|
RUN mkdir /var/cdb
|
|
RUN chown -R cdb:cdb /var/cdb
|
|
|
|
COPY requirements.lock.txt requirements.lock.txt
|
|
RUN pip install -r requirements.lock.txt
|
|
RUN pip install gunicorn
|
|
|
|
COPY utils utils
|
|
COPY config.cfg config.cfg
|
|
COPY migrations migrations
|
|
COPY app app
|
|
COPY translations translations
|
|
|
|
RUN pybabel compile -d translations
|
|
RUN chown -R cdb:cdb /home/cdb
|
|
|
|
USER cdb
|