aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristian Segundo2023-12-31 11:04:24 +0100
committerChristian Segundo2023-12-31 13:06:17 +0100
commit6e7734ff026b5be928703a4ad31ba4abaaf1535b (patch)
tree95d3f06ec93de075c002ba1dc1a316cbb367a03b /Dockerfile
parentc5f325e580540d81903360920094aafcc6ad4008 (diff)
downloadlanguagetool-6.3.tar.gz
use fixed uid/gid6.3
misc bash fixes
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 17 insertions, 12 deletions
diff --git a/Dockerfile b/Dockerfile
index 9ad4fd5..32e0d53 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,21 +4,26 @@ ARG VERSION=6.3
WORKDIR /home/languagetool
-RUN adduser \
- --home /home/languagetool \
- --no-create-home languagetool
-
SHELL ["/bin/bash", "-eufo", "pipefail", "-c"]
# hadolint ignore=DL3008
-RUN apt-get update && \
- apt-get upgrade -y && \
- apt-get install --no-install-recommends -y \
- curl \
- libarchive-tools && \
- curl --progress-bar "https://languagetool.org/download/LanguageTool-$VERSION.zip" |\
- bsdtar -x -f - && \
- rm -rf /var/lib/apt/lists/*
+RUN \
+ groupadd -g 1000 languagetool && \
+ adduser \
+ --uid 1000 \
+ --gid 1000 \
+ --home /home/languagetool \
+ --no-create-home languagetool && \
+ chown -R languagetool:languagetool /home/languagetool && \
+ export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get upgrade -y && \
+ apt-get install --no-install-recommends -y \
+ curl \
+ libarchive-tools && \
+ curl --progress-bar "https://languagetool.org/download/LanguageTool-$VERSION.zip" |\
+ bsdtar -x -f - && \
+ rm -rf /var/lib/apt/lists/*
COPY --chown=languagetool misc/init.sh /
COPY --chown=languagetool misc/ngram.sh /