From 2119298b42bc8df805d331123a0df9c7b5916da4 Mon Sep 17 00:00:00 2001 From: David Fry Date: Tue, 16 May 2023 19:45:25 +0100 Subject: [PATCH] try ussermod --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56f13d2..60ec7e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ ARG VAULT_VERSION=1.13.1 ARG UID=100 ARG GID=1000 -RUN groupadd -g "${GID}" vault \ - && useradd --create-home --no-log-init -u "${UID}" -g "${GID}" vault +RUN groupadd -g "${GID}" vault && mkdir -p /home/vault \ + && usermod -l vault -g "${GID}" -d /home/vault _apt # Update apt and Install dependencies RUN apt-get update && apt install software-properties-common -y && add-apt-repository ppa:rmescandon/yq -y \