diff options
author | Christian Segundo | 2023-12-31 11:04:24 +0100 |
---|---|---|
committer | Christian Segundo | 2023-12-31 13:06:17 +0100 |
commit | 6e7734ff026b5be928703a4ad31ba4abaaf1535b (patch) | |
tree | 95d3f06ec93de075c002ba1dc1a316cbb367a03b /Dockerfile | |
parent | c5f325e580540d81903360920094aafcc6ad4008 (diff) | |
download | languagetool-6.3.tar.gz |
use fixed uid/gid6.3
misc bash fixes
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -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 / |