diff --git a/Dockerfile b/Dockerfile index 0b4fc67..35ba95f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,6 @@ FROM alpine:edge RUN apk add --no-cache --update rsync openssh-client openssl && \ rm -rf /var/cache/apk/* -RUN addgroup -S appgroup && adduser -S app -G appgroup - -USER app - # Copy entrypoint COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index a108f98..62dd95f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,10 +3,11 @@ set -eu # Set deploy key -SSH_PATH="$HOME/.ssh" +SSH_PATH="/gh-rsync/.ssh" SSH_IDENTITY="$SSH_PATH/deploy_key" SSH_CFG="$SSH_PATH/config" SSH_CMDS="" + mkdir -p "$SSH_PATH" chmod 700 "$SSH_PATH"