-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (17 loc) · 657 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.10 AS poetry_builder
ENV POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN curl -sSL https://install.python-poetry.org | python -
FROM poetry_builder as builder
RUN mkdir /build
WORKDIR /build
COPY efergy_exporter ./efergy_exporter
COPY poetry.lock pyproject.toml ./
RUN poetry build -f wheel
# Temporary image pending PR to upstream
FROM ghcr.io/hertzg/rtl_433_docker:latest-debian
RUN apt update && apt install -y --no-install-recommends python3-pip && apt remove -y soapysdr0.8-module-audio
WORKDIR /srv
COPY --from=builder /build/dist/*.whl ./
RUN pip3 install --break-system-packages *.whl
ENTRYPOINT ["efergy_exporter"]