update mode of docker-entrypoint if linux
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user