17 lines
338 B
Docker
17 lines
338 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
CMD ["./entrypoint.sh"]
|