diff --git a/Dockerfile b/Dockerfile index d8fa44a..fcf2244 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.13 +FROM alpine:3.14 RUN apk --update --no-cache add nodejs npm python3 py3-pip jq curl bash git docker && \ ln -sf /usr/bin/python3 /usr/bin/python diff --git a/entrypoint.sh b/entrypoint.sh index 5a2e705..481af9f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -61,6 +61,13 @@ function installPipRequirements(){ } function runCdk(){ + user=$(stat -c "%u" node_modules) + group=$(stat -c "%g" node_modules) + addgroup -g $group github + adduser -u $user -G github -D github + mkdir -p cdk.out + chown github:github cdk.out + echo "Run cdk ${INPUT_CDK_SUBCOMMAND} ${*} \"${INPUT_CDK_STACK}\"" set -o pipefail cdk ${INPUT_CDK_SUBCOMMAND} ${*} "${INPUT_CDK_STACK}" 2>&1 | tee output.log