Skip to content

Commit

Permalink
Install dev tools before running bundle in image
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashuy committed Jun 3, 2024
1 parent 653b808 commit 2e13f94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ FROM public.ecr.aws/lambda/ruby:{{ cookiecutter.options[cookiecutter.runtime].ve
COPY app.rb Gemfile ./

ENV GEM_HOME=${LAMBDA_TASK_ROOT}

# Install dev tools so that `bigdecimal` (a dep of httparty) can be installed
RUN yum install gcc make -y
RUN bundle install
# Remove the dev tools
RUN yum uninstall gcc make -y

# Command can be overwritten by providing a different command in the template directly.
CMD ["app.lambda_handler"]

0 comments on commit 2e13f94

Please sign in to comment.