I used NUT as the tinfiol backend server to install titles. I built this image for Synology NAS ,and also working good for others.
download this images in the Synology Docker , or use docker push bao3/ns_nut for others
IMPORTANT: you should set more than 1.5Gb memory . In my case , I set2Gb. If you set less than 1.5Gb memory , you would get "Killed" message .
mount your titles folder to /mnt for the container
mapping your port to port '9000' , which is the default port of NUT server
I didnot change the user name/password, the defaul nut user name/password is "guest/guest" , which is located at conf/users.conf
my Dockerfile is :
FROM python:latest
#Download the latest Nut archive
RUN wget https://github.com/blawar/nut/archive/refs/tags/v$(curl --silent https://api.github.com/repos/blawar/nut/releases/latest | grep -Po '"tag_name": "v\K.*?(?=")').tar.gz -O nut.tar.gz
RUN mkdir /nut && tar zxf nut.tar.gz -C /nut --strip-components 1
WORKDIR /nut
RUN pip install -r requirements.txt
#use the default configure file but change to scan /mnt folder which would be linked to game title folder in Synology NAS
RUN sed -i 's/\"scan\":\ \[\"\.\"\]/\"scan\":\ \[\"\/mnt\"\]/' conf/nut.default.conf
RUN cp conf/nut.default.conf conf/nut.conf
#change keys.txt folder to /mnt . Then you just need to put your keys.txt into your Synology NAS
RUN sed -i 's/keys\.txt/\/mnt\/keys\.txt/g' `grep keys\.txt -rl ./`
RUN sed -i 's/"threads":\ 1/"threads":\ 4/g' conf/nut.conf
VOLUME /mnt
EXPOSE 9000
CMD ["python3", "nut.py","-S"]
Content type
Image
Digest
Size
545.9 MB
Last updated
about 5 years ago
docker pull bao3/ns_nut