From f0697e2701817ce00804aa5a7cf01240cec4f810 Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Sat, 16 Nov 2024 13:07:53 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20Keep=20the=20source=20code=20in?= =?UTF-8?q?=20the=20generated=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we can see why `SetChargingProfile` is not implemented https://github.com/EVerest/everest-demo/issues/79#issuecomment-2480806268 --- gateway/Dockerfile | 9 --------- manager/Dockerfile | 9 --------- 2 files changed, 18 deletions(-) diff --git a/gateway/Dockerfile b/gateway/Dockerfile index f3e6222..f1bb5a6 100644 --- a/gateway/Dockerfile +++ b/gateway/Dockerfile @@ -24,13 +24,4 @@ COPY ./ ./ RUN --mount=type=cache,target=/root/.cache/go-build/ CGO_ENABLED=0 go build -o /app main.go -# STAGE 2: build the container -FROM gcr.io/distroless/static:nonroot AS final - -COPY --from=builder /usr/bin/curl /usr/bin/curl - -USER 10000:10000 - -COPY --from=builder --chown=nonroot:nonroot /app /app - ENTRYPOINT ["/app"] diff --git a/manager/Dockerfile b/manager/Dockerfile index 93f4f0e..27e6f0e 100644 --- a/manager/Dockerfile +++ b/manager/Dockerfile @@ -23,13 +23,4 @@ COPY ./ ./ RUN --mount=type=cache,target=/root/.cache/go-build/ CGO_ENABLED=0 go build -o /app main.go -# STAGE 2: build the container -FROM gcr.io/distroless/static:nonroot AS final - -COPY --from=builder /usr/bin/curl /usr/bin/curl - -USER 10000:10000 - -COPY --from=builder --chown=nonroot:nonroot /app /app - ENTRYPOINT ["/app"]