-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,9 @@ LABEL email='[email protected]' | |
|
||
# Prepare Nut install | ||
RUN apt-get update && apt-get -y install \ | ||
gcc \ | ||
cron \ | ||
wget \ | ||
unzip \ | ||
gcc \ | ||
libssl-dev \ | ||
libcurl4-openssl-dev \ | ||
zlib1g-dev \ | ||
|
@@ -21,7 +20,7 @@ RUN wget https://github.com/blawar/nut/archive/refs/tags/v3.3.zip | |
RUN unzip v3.3.zip -d /root | ||
RUN mv /root/nut-3.3 /root/nut | ||
|
||
# Tune config | ||
# Edit config | ||
RUN mv /root/nut/conf/nut.default.conf /root/nut/conf/nut.conf | ||
RUN sed -i '/scan/c "scan": ["\/titles"]' /root/nut/conf/nut.conf | ||
|
||
|
@@ -36,16 +35,12 @@ RUN echo markupsafe==2.0.1 >>/root/nut/requirements.txt | |
RUN pip3 install -U pip | ||
RUN pip3 install -r /root/nut/requirements.txt | ||
|
||
COPY /entrypoint.sh / | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
VOLUME [ "/titles" ] | ||
VOLUME [ "/titles", "/root/nut/conf", "/root/nut/_NSPOUT" ] | ||
|
||
EXPOSE 9000 | ||
|
||
# clean up | ||
RUN rm v3.3.zip | ||
RUN apt-get autoremove | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["python3", "/root/nut/nut.py", "--server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.