From a3df2478908fe75a6f4c1d24719a223d7604b6c7 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Wed, 29 Nov 2023 11:13:36 -0500 Subject: [PATCH] Fix capabilities --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index e9d6f68..30f754a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,10 @@ COPY . . RUN pnpm run build FROM docker.io/library/caddy:2.7.5-alpine + +# remove capabilities to make it work on OpenShift +RUN setcap -r /usr/bin/caddy + COPY ./Caddyfile /etc/caddy/Caddyfile COPY --from=build /app/dist /app/dist