-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ruby version. Add pronto eslint runner. (#14)
* Bump ruby version to 2.6. Add missing erb_lint runner. Add new eslint_npm runner. * Freeze eslint version to 6.8.0 * Use buster slim ruby image as base image
- Loading branch information
Showing
4 changed files
with
19 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
FROM ruby:2.5 | ||
FROM ruby:2.6-slim | ||
|
||
LABEL maintainer="Josh Bielick <[email protected]>" | ||
|
||
ENV BUNDLER_VERSION="2.1.4" | ||
ENV ESLINT_VERSION="6.8.0" | ||
|
||
RUN apt-get update && apt-get install -y curl | ||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
bash \ | ||
ruby-dev \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
pkg-config \ | ||
openssl \ | ||
yamllint \ | ||
nodejs \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN gem install bundler | ||
RUN gem install bundler --version "${BUNDLER_VERSION}" | ||
RUN npm install -g eslint@${ESLINT_VERSION} | ||
|
||
WORKDIR /runner | ||
|
||
COPY Gemfile* ./ | ||
|
||
ENV BUNDLE_GEMFILE /runner/Gemfile | ||
RUN bundle --retry 4 | ||
|
||
RUN bundle --jobs 2 --retry 4 | ||
ENV BUNDLE_GEMFILE /runner/Gemfile | ||
|
||
COPY . ./ | ||
|
||
|
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
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