new api service and logic implemented

This commit is contained in:
2025-01-23 22:27:25 +03:00
parent d91ecda9df
commit 32022ca521
245 changed files with 28004 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies and Poetry
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 Poetry configuration
COPY DockerApiServices/pyproject.toml ./pyproject.toml
# Configure Poetry and install dependencies with optimizations
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --no-root --only main \
&& pip cache purge \
&& rm -rf ~/.cache/pypoetry
# Copy application code
COPY DockerApiServices/AllApiNeeds /app
# Copy application code
COPY ApiLayers /app/ApiLayers
# Events
COPY Events/AllEvents/auth /app/Events/AllEvents/auth
COPY Events/base_request_model.py /app/Events/base_request_model.py
COPY Events/abstract_class.py /app/Events/abstract_class.py
# Set Python path to include app directory
ENV PYTHONPATH=/app \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
# Run the application using the configured uvicorn server
CMD ["poetry", "run", "python", "app.py"]

View File

@@ -0,0 +1,15 @@
fastapi==0.104.1
uvicorn==0.24.0.post1
pydantic==2.10.5
sqlalchemy==2.0.37
psycopg2-binary==2.9.10
python-dateutil==2.9.0.post0
motor==3.3.2
redis==5.2.1
pytest==7.4.4
pytest-asyncio==0.21.2
pytest-cov==4.1.0
coverage==7.6.10
arrow==1.3.0
redmail==0.6.0
sqlalchemy-mixins==2.0.5