Skip to content

Commit 39690e0

Browse files
authored
Merge pull request #306 from RockefellerArchiveCenter/base-image-workflow-fix
Update Dockerfile
2 parents 08e35a4 + 711ebf1 commit 39690e0

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

Dockerfile

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
11
FROM public.ecr.aws/lambda/python:3.12
22

3-
ENV RUBY_VERSION=3.2.4
4-
5-
# Install build tools
3+
# Install system packages
64
RUN dnf -y update && \
75
dnf -y install \
86
gcc gcc-c++ make \
9-
tar gzip bzip2 \
10-
curl wget git which \
11-
procps-ng \
12-
openssl-devel readline-devel zlib-devel libyaml-devel libffi-devel gdbm-devel ncurses-devel \
13-
ca-certificates findutils shadow-utils && \
7+
autoconf automake bison libtool patch \
8+
tar gzip bzip2 xz \
9+
git which procps-ng findutils ca-certificates \
10+
ruby ruby-devel rubygems \
11+
openssl-devel readline-devel zlib-devel libyaml-devel libffi-devel \
12+
gdbm-devel ncurses-devel sqlite-devel && \
1413
dnf clean all && rm -rf /var/cache/dnf
1514

16-
# Install RVM and Ruby
17-
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \
18-
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \
19-
curl -sSL https://get.rvm.io | bash -s stable
20-
21-
SHELL ["/bin/bash", "-lc"]
22-
23-
RUN source /etc/profile.d/rvm.sh && \
24-
rvm requirements && \
25-
rvm install "${RUBY_VERSION}" && \
26-
rvm --default use "${RUBY_VERSION}" && \
27-
gem update --system && \
15+
# Install Ruby gems
16+
RUN gem update --system && \
2817
gem install bundler --no-document && \
2918
gem install jekyll --no-document
3019

0 commit comments

Comments
 (0)