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"]