Compare commits

...

3 Commits

Author SHA1 Message Date
e049b1c4bd docker config 2026-02-14 15:16:45 +00:00
5972267d18 init dialectic 2026-02-13 16:14:12 +00:00
83c4461d29 init dialectic 2026-02-13 15:44:25 +00:00
2 changed files with 13 additions and 6 deletions

View File

@@ -1,16 +1,22 @@
FROM python:3.13-slim FROM 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"]

3
app.py
View File

@@ -56,4 +56,5 @@ 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)