Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #30

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Default owners of the repository
* @kyma-project/gopher

# Owners of all .md files in the repository
*.md @kyma-project/technical-writers
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build the manager binary
FROM golang:1.22 as builder

WORKDIR /workspace
WORKDIR /slack-bot-workspace

COPY go.mod go.mod
COPY go.sum go.sum
Expand All @@ -11,7 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bot main

FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/bot .
COPY --from=builder /slack-bot-workspace/bot .
USER nonroot:nonroot

ENTRYPOINT ["/bot"]
Loading