re-Made server totally - version 1.0 now come.

This commit is contained in:
Anry Das
2025-10-19 09:22:23 +03:00
parent 74c658b2dd
commit 738fb9f179
17 changed files with 2308 additions and 724 deletions

24
dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.13-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY main.py .
# Create uploads directory
RUN mkdir -p /app/uploads
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]