1
0
mirror of https://github.com/cnrancher/kube-explorer.git synced 2025-05-10 08:54:35 +00:00

fix: Add dockerignore file to clean up each ci build

This commit is contained in:
Yuxing Deng 2024-07-17 14:10:58 +08:00
parent 2f3c1e6ab5
commit aec9926ed8
3 changed files with 7 additions and 3 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
/bin
/dist
/internal/ui/ui

View File

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

View File

@ -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