From 12a566e5b53915f034631d02a4997e68dcff05f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Mon, 4 Dec 2023 11:06:49 +0100 Subject: [PATCH] fix: create docker image with proper git config (#1421) --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36f248d8a..2fb415bd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,12 @@ FROM ubuntu:23.04 RUN apt-get update && \ apt-get install -y git && \ - \ - git config --global --add safe.directory '*' && \ - \ - adduser --system --group runuser + useradd --system --user-group --create-home runuser COPY bearer /usr/local/bin/ USER runuser +RUN git config --global --add safe.directory '*' + ENTRYPOINT ["bearer"]