Skip to content

Commit

Permalink
Moves software installation to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelcampos committed Nov 16, 2022
1 parent 25d7b95 commit 60643a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 0 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60643a4

Please sign in to comment.