From eb73c55ac23da64e513abf296f53804fc622023d Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Thu, 29 Oct 2026 00:47:28 +0100 Subject: [PATCH] fix(drone): use full commit SHA for Docker tag and fix non-interactive adduser - Replace bash substring syntax ${DRONE_COMMIT_SHA:0:7} with ${DRONE_COMMIT_SHA} which is supported by Drone YAML variables - Use 'adduser -D -g ""' in Dockerfile to skip interactive prompts for user information during Docker image build --- .drone.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f90a491..c03123b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: context: . registry: gitea.jambotron.com repo: gitea.jambotron.com/liosha84/htop-web - tags: ${DRONE_COMMIT_SHA:0:7},main-latest + tags: ${DRONE_COMMIT_SHA},main-latest username: from_secret: REGISTRY_USERNAME password: diff --git a/Dockerfile b/Dockerfile index f060f49..afa3f07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ FROM eclipse-temurin:21-jre WORKDIR /app COPY --from=builder /app/build/libs/backend-0.0.1-SNAPSHOT.jar app.jar -RUN adduser --disabled-password --no-create-home appuser && \ +RUN adduser -D -g "" appuser && \ chown appuser:appuser /app USER appuser