Skip to content

Commit b533036

Browse files
committed
deprecated amalinux 2
1 parent 2c91ae0 commit b533036

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lambda/otel/Dockerfile_3_2

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
FROM public.ecr.aws/sam/build-ruby3.2:latest
1+
FROM amazonlinux:latest
22

33
ARG BUNDLE_RUBYGEMS__PKG__GITHUB__COM
44
ENV LAMBDA_TASK_ROOT=/fake_lambda_task_root/
55

66
RUN mkdir /build
77
COPY . /build
88

9+
# install ruby 3.2
10+
RUN yum update && yum install -y ruby-devel gcc-c++ make tar openssl-devel git zlib-devel
11+
RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv \
12+
&& git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build \
13+
&& git clone https://github.com/rbenv/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems \
14+
&& echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile \
15+
&& echo 'eval "$(rbenv init -)"' >> ~/.profile \
16+
&& echo 'eval "$(rbenv init -)"' >> ~/.bashrc \
17+
&& echo 'bundler' > ~/.rbenv/default-gems
18+
919
WORKDIR /build/layer
1020
RUN bundle config set --local path 'ruby'
1121

0 commit comments

Comments
 (0)