services api

This commit is contained in:
2025-07-31 17:26:30 +03:00
parent 479104a04f
commit 1f8db23f75
56 changed files with 1976 additions and 120 deletions

View File

@@ -0,0 +1,26 @@
FROM python:3.12-slim
WORKDIR /
RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/* && pip install --no-cache-dir poetry
COPY /ServicesBank/RoutineEmail/pyproject.toml ./pyproject.toml
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root --only main && pip cache purge && rm -rf ~/.cache/pypoetry
RUN apt-get update && apt-get install -y cron
COPY /ServicesBank/RoutineEmail /
RUN chmod +x /run_app.sh
COPY /ServicesBank/RoutineEmail /
COPY /ServicesApi/Controllers /ServicesApi/Controllers
COPY /ServicesBank/Depends/config.py /ServicesBank/Depends/config.py
COPY /ServicesBank/Depends/template_accounts.html /template_accounts.html
ENV PYTHONPATH=/ PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
RUN touch /var/log/cron.log
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]