diff --git a/Dockerfile b/Dockerfile
index a7e4614c4fe6544a854df2af2fa46089eefe19be..b1374ecb27de5b7796303c5242d0b483d2b65e33 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,9 +15,16 @@ RUN wget https://www.languagetool.org/download/LanguageTool-$VERSION.zip && \
 
 FROM openjdk:16-slim-buster
 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
 
+
 ENTRYPOINT [ "java", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer" ]