mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-21 13:36:37 +03:00
8a45f26d2e
use python:3.9.4-slim-buster img
18 lines
475 B
Plaintext
18 lines
475 B
Plaintext
FROM python:3.9.4-slim-buster
|
|
|
|
WORKDIR /usr/src/app
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
RUN apt update && apt install gcc -y
|
|
COPY . .
|
|
WORKDIR api/api
|
|
RUN pip install --upgrade pip; pip install poetry; poetry config virtualenvs.create false; poetry install; poetry add uwsgi
|
|
CMD poetry shell; uwsgi --master \
|
|
--single-interpreter \
|
|
--workers $WORKERS \
|
|
--gevent $ASYNC_CORES \
|
|
--protocol http \
|
|
--socket 0.0.0.0:$APP_PORT \
|
|
--module patched:app
|