1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
ARG DEBIAN_VERSION=bookworm
FROM debian:$DEBIAN_VERSION
ARG HTTP_PROXY
ENV http_proxy=${HTTP_PROXY}
ENV https_proxy=${HTTP_PROXY}
ARG PYTHON=python3
ENV PIPX_BIN_DIR=/usr/local/bin
ENV PIPX_DEFAULT_PYTHON=${PYTHON}
RUN apt-get update && apt-get install -y \
curl \
cython3 \
git \
ipmitool \
libffi-dev \
libhidapi-dev \
libssl-dev \
libsystemd-dev \
libudev-dev \
libusb-1.0-0-dev \
pkg-config \
psmisc \
pipx \
python3-pycodestyle \
python3-setuptools \
python3-usb \
python3-wheel \
rustc \
supervisor \
telnet \
snmp
RUN apt-get update && apt-get install -y \
${PYTHON}-venv ${PYTHON}-dev
RUN git config --global --add safe.directory '*'
ADD share/pdudaemon.conf /config/
WORKDIR /pdudaemon
COPY . .
RUN pipx install .[test]
CMD ["/usr/bin/supervisord", "-c", "/pdudaemon/share/supervisord.conf"]
|