Skip to content

Commit

Permalink
aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed May 6, 2024
1 parent f03d12e commit 22880dd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dockerfiles/Dockerfile.ruby32
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ RUN useradd -m newrelic-lambda-layers
USER newrelic-lambda-layers
WORKDIR /home/newrelic-lambda-layers

# Create a virtual environment for the AWS CLI and install it
RUN python3 -m venv awscli-venv
RUN . awscli-venv/bin/activate && pip install awscli

# Set the PATH to include the virtual environment's bin directory
ENV PATH="/home/newrelic-lambda-layers/awscli-venv/bin:$PATH"

# Ruby layer building depends on the shared `libBuild.sh` script but is
# otherwise independent. Copy over only what we need to build Ruby layers.
COPY --chown=newrelic-lambda-layers libBuild.sh .
COPY --chown=newrelic-lambda-layers ruby ruby/

WORKDIR ruby


RUN python3 -m venv awscli-venv
RUN . awscli-venv/bin/activate && pip install awscli

# Run ruby/bin/clean just in case Docker is being ran from a developer's
# workstation and their git clone directory has some stray files that could
# conflict.
Expand Down

0 comments on commit 22880dd

Please sign in to comment.