mirror of
https://github.com/davegallant/rfd-notify.git
synced 2026-03-03 01:26:37 +00:00
12 lines
492 B
Docker
12 lines
492 B
Docker
FROM python:3.14-slim-trixie AS builder
|
|
WORKDIR /app
|
|
COPY pyproject.toml poetry.lock* ./
|
|
RUN pip install --no-cache-dir poetry==2.2.1 poetry-plugin-export && \
|
|
poetry export -f requirements.txt --without-hashes --output requirements.txt
|
|
RUN python -m venv /venv && \
|
|
/venv/bin/pip install --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
ENV PATH="/venv/bin:$PATH"
|
|
RUN apt-get purge -y --allow-remove-essential bash
|
|
ENTRYPOINT ["/venv/bin/python", "rfd_notify/cli.py", "-c", "config.yml"]
|