This commit is contained in:
2024-03-04 07:12:29 +03:00
commit 4df5770e76
36 changed files with 2369 additions and 0 deletions

25
docker/api/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
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 .
RUN poetry install --only api --no-root
ENV CONFIG_PATH='/usr/src/service_man/config/api_config.yml'
RUN touch __init__.py

25
docker/bot/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
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'

View File