Skip to content

Commit

Permalink
Enable sudo and add less for aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmccune committed Nov 18, 2023
1 parent bdd0fe0 commit c7d164b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions toolkit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ FROM public.ecr.aws/docker/library/debian:bullseye AS final
RUN apt-get -qq -y update && \
apt-get -qq -y install \
curl \
jq
jq \
less \
sudo

# Install AWS CLI
COPY --from=aws-cli /usr/local/aws-cli/ /usr/local/aws-cli/
Expand All @@ -21,7 +23,9 @@ COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker
RUN curl -Lo /usr/local/bin/kubectl "https://dl.k8s.io/release/v1.28.4/bin/linux/amd64/kubectl" \
&& chmod 0755 /usr/local/bin/kubectl

RUN groupadd --gid 8192 app && useradd -m -d /app -c "App" -m --uid 8192 --gid 8192 app
RUN groupadd --gid 8192 app && \
useradd -m -d /app -c "App" -m --uid 8192 --gid 8192 app && \
usermod -aG sudo app

WORKDIR /app

Expand Down

0 comments on commit c7d164b

Please sign in to comment.