mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-05 08:13:39 +00:00
* Add initial python migration * Add pylint * Add pre-commit * Add Dockerfile * Add expression matching * Use shelve to store previous matches * Add notifications * Calculate post age * Update README.md
24 lines
586 B
Docker
24 lines
586 B
Docker
FROM cgr.dev/chainguard/python:dev-3.11 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml .
|
|
COPY poetry.lock .
|
|
COPY rfd_notify .
|
|
|
|
RUN pip install poetry==1.3.2 && \
|
|
/home/nonroot/.local/bin/poetry export -f requirements.txt > /tmp/requirements.txt
|
|
|
|
RUN pip install -r /tmp/requirements.txt --user
|
|
|
|
FROM cgr.dev/chainguard/python:3.11
|
|
|
|
WORKDIR /app
|
|
|
|
# Make sure you update Python version in path
|
|
COPY --from=builder /home/nonroot/.local/lib/python3.11/site-packages /home/nonroot/.local/lib/python3.11/site-packages
|
|
|
|
COPY rfd_notify .
|
|
|
|
ENTRYPOINT ["python", "cli.py", "-c", "config.yaml"]
|