diff --git a/Dockerfile b/Dockerfile index a44eeb87..e69a3ecf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ # Use base docker image. Contains the docker commands we need to start and stop containers FROM docker:24.0.6-cli +# The platform this image is created for (linux/amd64, linux/arm64) +ARG TARGETPLATFORM +ENV TARGETPLATFORM=${TARGETPLATFORM} + # Install dependencies RUN apk add bash rsync tzdata dos2unix jq diff --git a/pkg/entry.sh b/pkg/entry.sh index b3782d45..0ab7f530 100644 --- a/pkg/entry.sh +++ b/pkg/entry.sh @@ -4,6 +4,7 @@ source /app/logger.sh # Use the logger script create_new_report_file logThis "Nautical Backup Version: $NAUTICAL_VERSION" "INFO" "init" +logThis "Built for the platform: $BUILDPLATFORM" "DEBUG" "init" logThis "Using log level: $LOG_LEVEL" "DEBUG" "init" # Echo the CRON schedule for logging/debugging