Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
FROM swift:5.3 | ||
|
||
# Install system packages | ||
RUN apt-get update -y && apt-get install -y \ | ||
wget rubygems ruby-dev && \ | ||
RUN apt-get update -y && \ | ||
apt-get install -y curl wget && \ | ||
rm -r /var/lib/apt/lists/* | ||
|
||
# Install bundler | ||
RUN gem install bundler -v '~> 2.1.4' | ||
# install RVM, Ruby, and Bundler | ||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | ||
RUN \curl -sSL https://get.rvm.io | bash -s stable | ||
SHELL ["/bin/bash", "-l", "-c"] | ||
RUN rvm requirements | ||
RUN source /etc/profile.d/rvm.sh | ||
RUN rvm install 2.6 | ||
RUN gem install bundler -f -v "~> 2.2.27" | ||
|
||
# ensure we use login bash & correct path | ||
ENTRYPOINT ["/bin/bash", "-l", "-c"] | ||
ENV PATH="/usr/local/rvm/bin:/usr/local/rvm/gems/default/bin:/usr/local/rvm/rubies/default/bin:${PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM swift:5.4 | ||
|
||
# Install system packages | ||
RUN apt-get update -y && \ | ||
apt-get install -y curl wget && \ | ||
rm -r /var/lib/apt/lists/* | ||
|
||
# install RVM, Ruby, and Bundler | ||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | ||
RUN \curl -sSL https://get.rvm.io | bash -s stable | ||
SHELL ["/bin/bash", "-l", "-c"] | ||
RUN rvm requirements | ||
RUN source /etc/profile.d/rvm.sh | ||
RUN rvm install 2.6 | ||
RUN gem install bundler -f -v "~> 2.2.27" | ||
|
||
# ensure we use login bash & correct path | ||
ENTRYPOINT ["/bin/bash", "-l", "-c"] | ||
ENV PATH="/usr/local/rvm/bin:/usr/local/rvm/gems/default/bin:/usr/local/rvm/rubies/default/bin:${PATH}" |