update mode of docker-entrypoint if linux

This commit is contained in:
2025-10-23 18:48:01 +02:00
parent a724d07b96
commit 245679da83

View File

@@ -43,6 +43,9 @@ RUN mkdir -p ./etherpad
RUN touch ./etherpad/APIKEY.txt
RUN echo "haDF223lfaH79823qwSSdF" >> ./etherpad/APIKEY.txt
# Update the mode of the file in linux.
RUN if [ "$(uname -s)" = "Linux" ] && [ -f ./docker-entrypoint.sh ]; then chmod +x ./docker-entrypoint.sh; fi
EXPOSE 8000
ENTRYPOINT ["./docker-entrypoint.sh"]