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:
parent
2f3c1e6ab5
commit
aec9926ed8
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
/bin
|
||||
/dist
|
||||
/internal/ui/ui
|
@ -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"]
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user