Skip to content

Commit 5bb4f59

Browse files
authored
Simplify Dockerfile commands and update RubyGems
1 parent 40379f3 commit 5bb4f59

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ARG RUBY_VERSION
22
FROM ruby:$RUBY_VERSION-slim
33
RUN set -ex \
4-
# Update RubyGems system if Ruby version is 3.1 or higher
5-
&& if ruby -e 'exit(RUBY_VERSION.to_f >= 3.1)'; then \
6-
gem update --system; \
7-
fi \
8-
&& apt-get update -y \
9-
&& apt-get upgrade -y \
10-
&& apt-get install -y build-essential git libcurl4-openssl-dev \
11-
&& apt-get clean
4+
&& gem update --system --silent --quiet \
5+
&& apt-get update -y \
6+
&& apt-get upgrade -y \
7+
&& apt-get install -y \
8+
build-essential \
9+
git \
10+
libcurl4-openssl-dev \
11+
&& apt-get clean
1212
WORKDIR /app/github-pages-health-check
1313
COPY Gemfile .
1414
COPY github-pages-health-check.gemspec .

0 commit comments

Comments
 (0)