mirror of
https://github.com/MayersScott/rkn-block-checker.git
synced 2026-06-27 19:31:15 +00:00
22 lines
471 B
Docker
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"]
|