From 60643a4db90d0da4647f891dfd460e1d38a4c02b Mon Sep 17 00:00:00 2001 From: Manoel Campos Date: Wed, 16 Nov 2022 10:31:36 -0300 Subject: [PATCH] Moves software installation to Dockerfile --- Dockerfile | 2 ++ entrypoint.sh | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3f7caf..59aaeac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,7 @@ FROM asciidoctor/docker-asciidoctor:latest # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh +RUN apk update && apk add --update openssh-client git-lfs + # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 5668964..e90eb98 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,14 +9,7 @@ if [[ "$INPUT_ADOC_FILE_EXT" != .* ]]; then INPUT_ADOC_FILE_EXT=".$INPUT_ADOC_FILE_EXT"; fi -# Install git-lfs since it is not in Alpine base image. -echo "Install git-lfs" -apk update -apk add --update git-lfs - echo "Configure git" -apk add openssh-client -q > /dev/null - git config --global --add safe.directory /github/workspace git fetch --all