Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 30, 2024
1 parent e1a03b2 commit 2a38ed3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,32 @@ ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime \
RUN ln -snf "/usr/share/zoneinfo/${CONTAINER_TIMEZONE}" /etc/localtime \
&& echo $CONTAINER_TIMEZONE > /etc/timezone \
&& apt-get update \
&& apt-get install -y tzdata=* \
&& apt-get clean

RUN apt-get -y --no-install-recommends install \
RUN apt-get -qq -y --no-install-recommends install \
curl=* \
sudo=* \
git=* \
unzip=* \
zip=* \
gnupg2=* \
ssh=* \
libcurl4-gnutls-dev=* \
libxml2-utils=* \
libjpeg-dev=* \
build-essential=* \
ruby-dev=* libmagic-dev=* zlib1g-dev=* openssl=* \
&& apt-get clean

RUN mkdir -p /tmp/download \
&& curl -s -L "https://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz" | tar -xz -C /tmp/download \
&& mv /tmp/download/docker/docker /usr/bin/ \
&& rm -rf /tmp/download

RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \
&& curl -L https://get.rvm.io | sudo bash -s stable \
&& echo "source /usr/local/rvm/scripts/rvm && rvm use 3.2.2 && rvm default 3.2.2" >> /root/.profile
Expand Down

0 comments on commit 2a38ed3

Please sign in to comment.