File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
- FROM public.ecr.aws/sam/build-ruby3.2 :latest
1
+ FROM amazonlinux :latest
2
2
3
3
ARG BUNDLE_RUBYGEMS__PKG__GITHUB__COM
4
4
ENV LAMBDA_TASK_ROOT=/fake_lambda_task_root/
5
5
6
6
RUN mkdir /build
7
7
COPY . /build
8
8
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
+
9
19
WORKDIR /build/layer
10
20
RUN bundle config set --local path 'ruby'
11
21
You can’t perform that action at this time.
0 commit comments