Skip to content

Commit

Permalink
fix image building (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Dec 9, 2024
1 parent 0f3100f commit d68c515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ jobs:
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: function-buildless-controller
dockerfile: components/buildless-serverless/Dockerfile
dockerfile: Dockerfile
context: components/buildless-serverless
tags: ${{ needs.compute-tags.outputs.tags }}

build-serverless-webhook:
Expand Down
4 changes: 2 additions & 2 deletions components/buildless-serverless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.22 AS builder
ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
WORKDIR /workdir
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
Expand All @@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ma
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workdir/manager .
USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit d68c515

Please sign in to comment.