Skip to content

Commit b4976f6

Browse files
committed
Fix openssl deps
1 parent 7565b1f commit b4976f6

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

rails/6/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM alpine:3.16
1+
FROM alpine:3.21
22

3+
# Install required packages including OpenSSL
34
RUN apk add --no-cache \
45
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
5-
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
6+
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
67
&& mkdir -p /usr/src/app \
78
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
89
&& cd /usr/src/ruby-install \
910
&& make install \
10-
&& ruby-install --system ruby 3.0.6 -- --disable-install-rdoc \
11-
--with-openssl-dir=/usr \
11+
&& ruby-install --system ruby 3.0.6 -- --disable-install-rdoc --with-openssl-dir=/usr \
1212
&& gem install 'bundler:2.2.33' 'rails:6.1.7.10' \
1313
&& bundle config --global build.nokogiri --use-system-libraries \
1414
&& apk del ruby \
@@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app
2525

2626
EXPOSE 3000/tcp
2727

28-
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
28+
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

rails/7/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM alpine:3.21
22

3+
# Install required packages including OpenSSL
34
RUN apk add --no-cache \
45
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
5-
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
6+
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
67
&& mkdir -p /usr/src/app \
78
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
89
&& cd /usr/src/ruby-install \
910
&& make install \
10-
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc \
11-
--with-openssl-dir=/usr \
11+
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc --with-openssl-dir=/usr \
1212
&& gem install 'bundler:2.5.6' 'rails:7.2.2.1' \
1313
&& bundle config --global build.nokogiri --use-system-libraries \
1414
&& apk del ruby \
@@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app
2525

2626
EXPOSE 3000/tcp
2727

28-
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
28+
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

rails/8/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM alpine:3.21
22

3+
# Install required packages including OpenSSL
34
RUN apk add --no-cache \
45
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
5-
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
6+
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
67
&& mkdir -p /usr/src/app \
78
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
89
&& cd /usr/src/ruby-install \
910
&& make install \
10-
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc \
11-
--with-openssl-dir=/usr \
11+
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc --with-openssl-dir=/usr \
1212
&& gem install 'bundler:2.5.6' 'rails:8.0.2' \
1313
&& bundle config --global build.nokogiri --use-system-libraries \
1414
&& apk del ruby \
@@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app
2525

2626
EXPOSE 3000/tcp
2727

28-
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
28+
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

0 commit comments

Comments
 (0)