init dialectic

This commit is contained in:
h z
2026-02-13 15:44:25 +00:00
parent 343a4b8d67
commit 83c4461d29
2 changed files with 13 additions and 7 deletions

View File

@@ -1,16 +1,22 @@
FROM python:3.13-slim FROM docker.m.daocloud.io/library/python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED=1
WORKDIR /app WORKDIR /app
COPY requirements.txt ./requirements.txt RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential gcc \
python3-dev \
libssl-dev libffi-dev \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install --upgrade pip setuptools wheel
COPY requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/ COPY . /app/
EXPOSE 5001 EXPOSE 8000
CMD ["python3", "app.py"] CMD ["python3", "app.py"]

2
app.py
View File

@@ -56,4 +56,4 @@ async def root():
if __name__ == "__main__": if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8020) uvicorn.run(app, host="0.0.0.0", port=8000)