-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
23 additions
and
15 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,13 +1,16 @@ | ||
FROM ruby | ||
FROM frolvlad/alpine-oraclejdk8:slim | ||
|
||
MAINTAINER [email protected] | ||
|
||
# TODO: activate --ngram | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y unzip default-jre && \ | ||
gem install gherkin_language --no-format-exec && \ | ||
echo "Feature: Empty" > /tmp/empty.feature && \ | ||
gherkin_language /tmp/empty.feature && \ | ||
rm /tmp/empty.feature | ||
RUN apk --update add ruby ruby-dev build-base ruby-rdoc ruby-irb ca-certificates openssl \ | ||
&& gem install gherkin_language json --no-format-exec \ | ||
&& echo "Feature: Empty" > /tmp/empty.feature \ | ||
&& gherkin_language /tmp/empty.feature \ | ||
&& rm /tmp/empty.feature \ | ||
&& apk del ruby-dev build-base ruby-rdoc ruby-irb ca-certificates openssl \ | ||
&& rm -rf /var/cache/apk \ | ||
&& ls -1 /tmp/LanguageTool*/org/languagetool/resource/ | grep -v en | xargs rm -rf /tmp/LanguageTool*/org/languagetool/resource/ | ||
|
||
CMD gherkin_language | ||
ENTRYPOINT ["gherkin_language"] | ||
CMD ["--help"] |
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
90187cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #2