From 4ef6b4b7b315eb6cb85e1422712047e7db1b0a0b Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Wed, 15 Mar 2023 05:42:08 -0700 Subject: [PATCH] Fix permissions issue with Caddy image - Between version 2.6.2 and 2.6.3 there were some permissions changes on the official images that stopped them from working on OpenShift. - These updates resolve the permissions issue for OCP. Signed-off-by: Wade Barnes --- docker/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e35c083..e271fe1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,4 +12,9 @@ RUN npm run build # production stage FROM ${runtime_image} as production-stage -COPY --from=build-stage /app/dist /srv \ No newline at end of file +COPY --from=build-stage /app/dist /srv + +# Fix permissions issue with Caddy image +# - Between version 2.6.2 and 2.6.3 there were some permissions changes on the official images that stopped them from working on OpenShift. +# - This update resolves that permissions issue for OCP. +RUN chown 1001:root /usr/bin/caddy \ No newline at end of file