FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 RUN pip install --upgrade pip RUN pip install poetry RUN poetry config virtualenvs.create false RUN mkdir -p /usr/src/service_man WORKDIR /usr/src/service_man COPY ./poetry.lock . COPY ./pyproject.toml . COPY ./config . RUN poetry install --only bot --no-root ENV CONFIG_PATH='./config/bot_config.toml'