Skip to content

Commit

Permalink
#3 Fix a permission error when writing to config.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikvl87 committed Jan 16, 2020
1 parent 2a34bb6 commit 4c66c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -46,11 +46,11 @@ WORKDIR /LanguageTool-${LANGUAGETOOL_VERSION}

RUN mkdir /nonexistent && touch /nonexistent/.languagetool.cfg

COPY start.sh start.sh
RUN addgroup -S languagetool && adduser -S languagetool -G languagetool

COPY config.properties config.properties
COPY --chown=languagetool start.sh start.sh

RUN addgroup -S languagetool && adduser -S languagetool -G languagetool
COPY --chown=languagetool config.properties config.properties

USER languagetool

Expand Down
3 changes: 1 addition & 2 deletions start.sh
Expand Up @@ -14,6 +14,5 @@ fi
Xms=${Java_Xms:-256m}
Xmx=${Java_Xmx:-512m}

echo "Starting Java with -Xms$Xms -Xmx$Xmx"

set -x
java -Xms$Xms -Xmx$Xmx -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8010 --public --allow-origin '*' --config config.properties

0 comments on commit 4c66c0a

Please sign in to comment.