1
0
forked from erp-dev/erp

feat: prod clean

This commit is contained in:
2026-05-01 22:43:22 +08:00
parent 1afcfde151
commit d7b388e935
19 changed files with 1198 additions and 134 deletions

20
Dockerfile.prod Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.14-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_ROOT_USER_ACTION=ignore
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential postgresql-client \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.prod.txt /app/
RUN pip install --upgrade pip \
&& pip install -r requirements.prod.txt
COPY . /app
CMD ["python", "-m", "uvicorn", "flower.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]