rkn-block-checker/Dockerfile
2026-05-07 17:30:40 +03:00

22 lines
471 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install --no-cache-dir --no-deps .
RUN useradd --create-home --shell /bin/bash rkncheck
USER rkncheck
ENTRYPOINT ["rkn-check"]
CMD ["--help"]