22 lines
468 B
Docker
22 lines
468 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
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
|
|
|
|
COPY . /app/
|
|
|
|
EXPOSE 8000
|
|
CMD ["python3", "app.py"] |