Skip to content

Commit

Permalink
Install awscli in runner (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
hundt-corbalt authored Jan 23, 2025
1 parent 26432e2 commit d100fe8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions latest.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ RUN apt-get update \
unzip \
&& rm -rf /var/lib/apt/lists

# install awscli because the standard runner has it
# per https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install

# Remove setuid and setgid permissions after all package installations to address
# https://github.com/goodwithtech/dockle/blob/master/CHECKPOINT.md#cis-di-0008
RUN find / -path /proc -prune -o -perm /6000 -type f -exec chmod a-s {} + || true
Expand Down
6 changes: 6 additions & 0 deletions playwright.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ RUN apt-get update \
unzip \
&& rm -rf /var/lib/apt/lists

# install awscli because the standard runner has it
# per https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install

WORKDIR /home/runner
USER runner

Expand Down

0 comments on commit d100fe8

Please sign in to comment.