diff --git a/Dockerfile b/Dockerfile index cdb8599..a10a546 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN mkdir /root/.ssh COPY ./id_rsa /root/.ssh/ RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* -COPY entrypoint.sh / +COPY entrypoint.sh generators / RUN chmod +x /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index ff4b61c..0c86d21 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,7 @@ while [ "$1" ]; do ;; "-t" | "--type") GENERATOR_NAME="$2" - GENERATOR_SCRIPT="generators/$GENERATOR_NAME.sh" + GENERATOR_SCRIPT="/generators/$GENERATOR_NAME.sh" if [ ! -f "$GENERATOR_SCRIPT" ]; then echo "type de documentation inconnue, veuillez entrer un générateur valide" >&2 exit 1