mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-08-03 19:36:00 -04:00
Modify default port so it cna be used on secured kubernetes
This commit is contained in:
parent
2a9378e24e
commit
847d1e9e76
@ -5,7 +5,7 @@ FROM kiwix/kiwix-tools:$VERSION
|
||||
LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools
|
||||
|
||||
# expose kiwix-serve default port and workdir
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
|
||||
|
@ -13,7 +13,11 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
CMD="/usr/local/bin/kiwix-serve --port=80 $@"
|
||||
if [ -z "$PORT" ]
|
||||
then
|
||||
PORT=8080
|
||||
fi
|
||||
CMD="/usr/local/bin/kiwix-serve --port=$PORT $@"
|
||||
echo $CMD
|
||||
$CMD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user