12 lines
357 B
Docker
12 lines
357 B
Docker
ARG PY_VERSION=3.12
|
|
FROM python:${PY_VERSION}-slim
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y --no-install-recommends tzdata \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
RUN chmod +x entrypoint.sh
|
|
CMD ["./entrypoint.sh"]
|