feat: dockerize admin app without workers

This commit is contained in:
Your Name
2026-07-18 20:49:14 +05:00
parent 86ff75adbd
commit 580c75cbf6
+28
View File
@@ -0,0 +1,28 @@
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
postgresql-client \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY src/ src/
COPY original_project/ original_project/
COPY favi.png .
COPY .env.example .env
ENV PYTHONPATH=/app/src
ENV PYTHONUNBUFFERED=1
EXPOSE 8000
# Start uvicorn without any workers
CMD ["uvicorn", "vk_parser_app.admin:app", "--host", "0.0.0.0", "--port", "8000"]