From 275159330f593364c0f0bbe3be3ba9342ad3b1b7 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Wed, 29 Nov 2023 11:41:11 -0500 Subject: [PATCH] Oops, wrong file --- Dockerfile | 3 --- dist.Dockerfile | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 542dc0d..0efbc5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,6 @@ RUN pnpm run build FROM docker.io/library/caddy:2.7.5-alpine -# remove capabilities to make it work on OpenShift -RUN setcap cap_net_bind_service=-ep /usr/bin/caddy - COPY ./Caddyfile /etc/caddy/Caddyfile COPY --from=build /app/dist /app/dist diff --git a/dist.Dockerfile b/dist.Dockerfile index 72a3d86..c6e7132 100644 --- a/dist.Dockerfile +++ b/dist.Dockerfile @@ -1,6 +1,10 @@ # Build on-the-metal, deploy using Docker 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 ./dist /app/dist