docker-webnut/Dockerfile
David Claeys e4d48bbdca
All checks were successful
Build docker container / build (push) Successful in 2m31s
fix dependencies
2024-12-06 12:24:39 +01:00

25 lines
520 B
Docker

FROM python:3.11-alpine
RUN apk update \
&& apk upgrade --available \
&& apk add git tzdata bash \
&& 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
WORKDIR /app/webNUT
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 6543