More preparation for running in docker

This commit is contained in:
2026-06-17 17:34:07 +02:00
parent 96921d83c0
commit 1c5afe4092
3 changed files with 20 additions and 9 deletions

View File

@@ -31,9 +31,20 @@ elif [ $1 = "dockerbuild" ]; then
docker image build \
--file Dockerfile \
--progress plain \
--tag folder-opds-server \
--tag thonoht/folder-opds-server \
.
elif [ $1 = "dockerrun" ]; then
docker run \
-di \
-e OFS_LIBRARY_PATH=/root/library \
-e OFS_PORT=5000 \
-e OFS_TITLE="ThoNohT's Server" \
-v ./library:/root/library \
-p 5000:5000 \
--name folder-opds-server thonoht/folder-opds-server
docker ps
else
echo "Invalid command."