Files
rfd-notify/Dockerfile
dependabot[bot] 267feee99c Bump chainguard/python from dev-3.11 to dev-3.11.1 (#266)
Bumps chainguard/python from dev-3.11 to dev-3.11.1.

---
updated-dependencies:
- dependency-name: chainguard/python
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 23:55:19 -05:00

24 lines
594 B
Docker

FROM cgr.dev/chainguard/python:dev-3.11.1 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.1
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", "/app/cli.py", "-c", "config.yml"]