mirror of
https://github.com/davegallant/rfd-notify.git
synced 2026-03-03 01:26:37 +00:00
Update Dockerfile (#435)
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,12 +1,11 @@
|
|||||||
# syntax=docker/dockerfile:1
|
FROM python:3.13-slim-trixie AS builder
|
||||||
FROM python:3.12-alpine3.17
|
|
||||||
|
|
||||||
WORKDIR /app
|
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 . .
|
COPY . .
|
||||||
|
ENV PATH="/venv/bin:$PATH"
|
||||||
RUN pip install --no-cache-dir poetry==1.3.2 && \
|
RUN apt-get purge -y --allow-remove-essential bash
|
||||||
poetry export -f requirements.txt > /tmp/requirements.txt && \
|
ENTRYPOINT ["/venv/bin/python", "rfd_notify/cli.py", "-c", "config.yml"]
|
||||||
pip install -r /tmp/requirements.txt
|
|
||||||
|
|
||||||
ENTRYPOINT ["python", "/app/rfd_notify/cli.py", "-c", "config.yml"]
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ This was originally written before [alerts](https://www.redflagdeals.com/alerts/
|
|||||||
The simplest way to get started is to clone this repo, and run with docker:
|
The simplest way to get started is to clone this repo, and run with docker:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -it -v "$(pwd)/examples/config.yml:/app/config.yml" ghcr.io/davegallant/rfd-notify:2
|
docker run --rm -v "$(pwd)/examples/config.yml:/app/config.yml" $(docker build -q -t rfd-notify .)
|
||||||
```
|
```
|
||||||
|
|
||||||
To run the code with [poetry](https://python-poetry.org/), clone this repo and run the following:
|
To run the code with [poetry](https://python-poetry.org/), clone this repo and run the following:
|
||||||
|
|||||||
Reference in New Issue
Block a user