docker-pluget/Dockerfile
2022-08-20 18:49:37 +01:00

23 lines
No EOL
557 B
Docker

FROM python:3.10.4
# set version label
ARG PLUGET_VERSION=v1.7.2
LABEL maintainer="oscar@oscarpo.co"
ENV HOME="/config"
RUN curl -LO https://github.com/Neocky/pluGET/releases/download/$PLUGET_VERSION/pluGET-$PLUGET_VERSION.zip
RUN unzip -d config pluGET-$PLUGET_VERSION.zip
COPY /run.py $HOME
WORKDIR $HOME
RUN pip install -r requirements.txt
# allow non-interactive creation of config file
RUN sed -i '/input("Press any key + enter to exit...")/d' $HOME/src/handlers/handle_config.py
RUN python3 pluget.py
CMD python3 run.py && python3 pluget.py