From 025cc0ccdf7c46293698fef7c6f61df3b6e79ab2 Mon Sep 17 00:00:00 2001 From: swissbuechi Date: Tue, 10 Jan 2023 10:43:05 +0100 Subject: [PATCH] Fix user permission --- .github/dependabot.yml | 2 ++ Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 255ec93..b0396b7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,4 +14,6 @@ updates: interval: "daily" ignore: - dependency-name: "eclipse-temurin" + update-types: [ "version-update:semver-major" ] + - dependency-name: "ibm-semeru-runtimes" update-types: [ "version-update:semver-major" ] \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4bdf621..c33f98f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,9 @@ WORKDIR /app ENV TZ=Europe/Zurich RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -RUN apk --no-cache add curl +RUN apt-get install curl -y -RUN addgroup --gid 1000 -S app && adduser --uid 1000 -S app -G app +RUN useradd --uid 1000 --user-group app RUN chown -R app:app /app USER app