From 36c854bdf9243d65b3c2249aa878cf3abb24731a Mon Sep 17 00:00:00 2001 From: renzaspiras Date: Wed, 5 Nov 2025 09:22:47 -0800 Subject: [PATCH] fix: update Dockerfile to fix build error - Add proper USER commands - Add set -ex for better error handling - Fix apache2-utils installation --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 81c01b0..5b4f989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ FROM registry:2 +USER root # Install Apache utilities for htpasswd management -RUN apt-get update && apt-get install -y \ - apache2-utils \ - && rm -rf /var/lib/apt/lists/* \ No newline at end of file +RUN set -ex \ + && apt-get update \ + && apt-get install -y apache2-utils \ + && rm -rf /var/lib/apt/lists/* + +USER nobody \ No newline at end of file