Skip to content
Snippets Groups Projects
Verified Commit 43a3ded3 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: non-root user

parent 44e79ee7
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,16 @@ RUN wget https://www.languagetool.org/download/LanguageTool-$VERSION.zip && \ ...@@ -15,9 +15,16 @@ RUN wget https://www.languagetool.org/download/LanguageTool-$VERSION.zip && \
FROM openjdk:16-slim-buster FROM openjdk:16-slim-buster
ARG VERSION ARG VERSION
COPY --from=builder /LanguageTool-$VERSION /languagetool
COPY --from=builder /fastText/fasttext /languagetool/fasttext RUN addgroup --system --gid 1000 languagetool && \
adduser --system --ingroup languagetool --uid 1000 --shell /bin/sh --home /languagetool --no-create-home languagetool
USER languagetool
COPY --chown=languagetool:languagetool --from=builder /LanguageTool-$VERSION /languagetool
COPY --chown=languagetool:languagetool --from=builder /fastText/fasttext /languagetool/fasttext
WORKDIR /languagetool WORKDIR /languagetool
ENTRYPOINT [ "java", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer" ] ENTRYPOINT [ "java", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment