update readme and docker file

This commit is contained in:
David Claeys
2024-12-06 12:14:54 +01:00
parent c71a4d5652
commit 81e0fcded5
2 changed files with 39 additions and 24 deletions

View File

@ -1,16 +1,18 @@
FROM python:2.7
LABEL org.opencontainers.image.authors="Eric Taieb Walch <teknologist@gmail.com>"
RUN mkdir /app && \
cd /app && \
git clone https://github.com/rshipp/python-nut2.git && \
cd python-nut2 && \
python setup.py install && \
cd .. && \
git clone https://github.com/rshipp/webNUT.git && cd webNUT && \
pip install -e .
FROM python:3.11-alpine
RUN apk update \
&& apk upgrade --available \
&& apk add git tzdata \
&& mkdir /app \
&& cd /app \
&& git clone https://github.com/rshipp/python-nut2.git \
&& cd python-nut2 \
&& python setup.py install \
&& cd .. \
&& git clone https://github.com/rshipp/webNUT.git \
&& cd webNUT \
&& pip install -e . \
&& rm -rf /var/cache/apk/*
COPY /docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh