Skip to content

Commit

Permalink
deprecated amalinux 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuan-cao-swi committed Dec 9, 2024
1 parent 2c91ae0 commit b533036
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lambda/otel/Dockerfile_3_2
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
FROM public.ecr.aws/sam/build-ruby3.2:latest
FROM amazonlinux:latest

ARG BUNDLE_RUBYGEMS__PKG__GITHUB__COM
ENV LAMBDA_TASK_ROOT=/fake_lambda_task_root/

RUN mkdir /build
COPY . /build

# install ruby 3.2
RUN yum update && yum install -y ruby-devel gcc-c++ make tar openssl-devel git zlib-devel
RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv \
&& git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build \
&& git clone https://github.com/rbenv/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems \
&& echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile \
&& echo 'eval "$(rbenv init -)"' >> ~/.profile \
&& echo 'eval "$(rbenv init -)"' >> ~/.bashrc \
&& echo 'bundler' > ~/.rbenv/default-gems

WORKDIR /build/layer
RUN bundle config set --local path 'ruby'

Expand Down

0 comments on commit b533036

Please sign in to comment.