-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prebuild-docker-images' into 'main'
Prebuild docker images See merge request reportcreator/reportcreator!676
- Loading branch information
Showing
2 changed files
with
13 additions
and
18 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,18 +1,20 @@ | ||
FROM erikvl87/languagetool:6.4 | ||
FROM elestio/languagetool:v6.4 | ||
|
||
# Add custom CA certificates | ||
USER root | ||
# PostgreSQL support | ||
RUN wget https://github.com/pgjdbc/pgjdbc/releases/download/REL42.7.3/postgresql-42.7.3.jar -P libs --quiet \ | ||
RUN apk add --no-cache zip unzip wget \ | ||
&& wget https://github.com/pgjdbc/pgjdbc/releases/download/REL42.7.3/postgresql-42.7.3.jar -P libs --quiet \ | ||
&& wget https://github.com/pgjdbc/pgjdbc/archive/refs/tags/REL42.7.3.tar.gz -P /src --quiet \ | ||
&& mkdir -p org/languagetool/server \ | ||
&& unzip -p languagetool-server.jar org/languagetool/server/mybatis-config.xml | \ | ||
sed '/^\s*<\/dataSource>/i<property name="driver.prepareThreshold" value="0"\/>' \ | ||
> org/languagetool/server/mybatis-config.xml \ | ||
&& zip -u languagetool-server.jar org/languagetool/server/mybatis-config.xml | ||
&& zip -u languagetool-server.jar org/languagetool/server/mybatis-config.xml \ | ||
&& apk del zip unzip wget ca-certificates | ||
|
||
# Add custom wordlists | ||
COPY scripts/* ./ | ||
COPY wordlists /custom-wordlists/ | ||
RUN /bin/bash add_wordlists.sh | ||
RUN bash add_wordlists.sh | ||
|
||
USER 100 |