db_kyc_project/bot/Dockerfile

22 lines
408 B
Docker
Raw Normal View History

2024-10-28 00:04:35 +03:00
FROM python:3.10.7
# python envs
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
# python dependencies
COPY ./requirements.txt /
RUN pip install -r /requirements.txt
COPY ./scripts/start.sh ./scripts/gunicorn.sh /
RUN chmod +x /start.sh
RUN chmod +x /gunicorn.sh
WORKDIR /app