Skip to content

Commit

Permalink
Merge pull request #294 from VOID404/fix-dockerfile
Browse files Browse the repository at this point in the history
Change paths for image builder
  • Loading branch information
kyma-bot committed Jul 12, 2024
2 parents 3aa4687 + feb6569 commit e9bf179
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build the manager binary
FROM golang:1.22.5 as builder

WORKDIR /workspace
WORKDIR /acm-workspace

# Copy the Go Modules manifests
COPY go.mod go.sum ./
Expand All @@ -21,9 +21,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
FROM gcr.io/distroless/static:nonroot

WORKDIR /
COPY --chown=65532:65532 --from=builder /workspace/manager .
COPY --chown=65532:65532 --from=builder /workspace/application-connector.yaml .
COPY --chown=65532:65532 --from=builder /workspace/application-connector-dependencies.yaml .
COPY --chown=65532:65532 --from=builder /acm-workspace/manager .
COPY --chown=65532:65532 --from=builder /acm-workspace/application-connector.yaml .
COPY --chown=65532:65532 --from=builder /acm-workspace/application-connector-dependencies.yaml .
USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit e9bf179

Please sign in to comment.