updated prisma service async runner

This commit is contained in:
2025-08-10 11:01:26 +03:00
parent c2fd263f27
commit 768f0a5daf
13637 changed files with 4688722 additions and 0 deletions

27
ServicesRunner/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y build-essential libpq-dev && rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY ServicesRunnner/requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy Prisma schema and generate client
COPY ServicesRunnner/schema.prisma .
COPY ServicesRunnner/Depends .
RUN prisma generate
# Copy the rest of the application
COPY ServicesRunnner/ .
# Set environment variables
ENV PYTHONPATH=/app
# Command to run when container starts
CMD ["python", "-m", "template.py"]