Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 14, 2024
1 parent 524c206 commit 998c13f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions components/services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@ FROM public.ecr.aws/lambda/ruby:$RUBY_VERSION AS build-image
RUN dnf update && \
dnf -y install postgresql-devel openssl-devel gcc make

RUN gem install bundler

ARG FUNCTION_DIR
RUN mkdir -p ${FUNCTION_DIR}
COPY Gemfile Gemfile.lock ${FUNCTION_DIR}/
WORKDIR ${FUNCTION_DIR}

ENV BUNDLE_APP_CONFIG="${FUNCTION_DIR}/.bundle"

RUN bundle config --local deployment true && \
RUN gem install bundler && \
bundle config --local deployment true && \
bundle config --local path "vendor/bundle" && \
bundle config --local without 'development test'

RUN bundle install --jobs 20 --retry 5
bundle config --local without 'development test' && \
bundle install

RUN rm -rf vendor/bundle/ruby/*/cache/ && find vendor/ -name "*.o" -delete && find vendor/ -name "*.c"

Expand Down
3 changes: 3 additions & 0 deletions components/services/config/application.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require "bundler"
Bundler.require

require_relative "app_settings"
require_relative "initializers/aws_stubs"

Expand Down

0 comments on commit 998c13f

Please sign in to comment.