forked from erp-dev/erp
feat: prod clean
This commit is contained in:
20
Dockerfile.prod
Normal file
20
Dockerfile.prod
Normal 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"]
|
||||
Reference in New Issue
Block a user