diff --git a/Dockerfile b/Dockerfile index 8834340..2276d78 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:latest RUN apt-get -y update && \ - apt-get -y install squashfuse \ + apt-get -y install squashfuse \ squashfs-tools \ xorriso \ fakeroot \ @@ -19,9 +19,9 @@ RUN apt-get -y update && \ mkdir /root/.gnupg && \ chmod 600 /root/.gnupg +COPY image-create.sh /app/ + VOLUME /data WORKDIR /data -COPY image-create.sh /data - -ENTRYPOINT [ "/data/image-create.sh" ] +ENTRYPOINT [ "/app/image-create.sh" ] diff --git a/image-create.sh b/image-create.sh index 77fdbd2..1e9a9ff 100755 --- a/image-create.sh +++ b/image-create.sh @@ -4,7 +4,7 @@ set -Eeuo pipefail trap cleanup SIGINT SIGTERM ERR EXIT [[ ! -x "$(command -v date)" ]] && echo "💥 date command not found." && exit 1 -# export initial varibales +# export initial variables export_metadata(){ export TODAY=$(date +"%Y-%m-%d") @@ -81,7 +81,7 @@ Available options: That file will be used by default if it already exists. -l, --legacy When using the -s, --source flags you must specify the --legacy flag if the source image is based on isolinux. - Otherwise, eltorito usage is assumed + Otherwise, eltorito usage is assumed -d, --destination Destination ISO file. By default