Skip to content

Commit

Permalink
fix: Add dockerignore file to clean up each ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
orangedeng committed Jul 17, 2024
1 parent 2f3c1e6 commit aec9926
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/bin
/dist
/internal/ui/ui
4 changes: 2 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM registry.suse.com/bci/bci-minimal:15.6
ARG TARGETARCH
ARG TARGETOS
ENV ARCH=${TARGETARCH:-"amd64"} OS=${TARGETOS:-"linux"}
COPY package/entrypoint.sh /usr/bin/
COPY dist/kube-explorer-${OS}-${ARCH} /usr/bin/kube-explorer
COPY entrypoint.sh /usr/bin/
COPY kube-explorer-${OS}-${ARCH} /usr/bin/kube-explorer
ENTRYPOINT ["entrypoint.sh"]
3 changes: 2 additions & 1 deletion scripts/package
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ set -e
source $(dirname $0)/version
cd "$(dirname $0)/.."

docker build -f package/Dockerfile -t "cnrancher/kube-explorer:$VERSION" .
cp dist/* package/
docker build -f package/Dockerfile -t "cnrancher/kube-explorer:$VERSION" package

0 comments on commit aec9926

Please sign in to comment.