init dialectic
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -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"]
|
||||||
Reference in New Issue
Block a user