Skip to content

Commit

Permalink
fix(KONFLUX-4191): potentially .git not available (#380)
Browse files Browse the repository at this point in the history
Remove the the git execution in the Dockerfile.

---------

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo authored Oct 22, 2024
1 parent f03dc80 commit 05ce4fa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
41 changes: 20 additions & 21 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
.podman
.docker
.kube
# By default ignore
**/*

.DS_Store
.cicd_bootstrap.sh
secrets
.venv
bin
tmp.*/**
**/__debug_bin

*.log

configs
!configs/config.example.yaml

# File generated when running unit tests
coverage.out

# NOTE: .git directory is not listed here. `go build` needs the full `.git`
# directory to include VCS information in go binaries.
# Add only what we need to build
!Makefile
!go.mod
!go.sum
!/internal/**
!/cmd/**
!/api/**
!/build/**
!/dashboards/**
!/deployments/**
!/scripts/**/*
!/tools/*
!/tools/mk/*
!/configs/config.example.yaml
!/configs/config.ci.yaml
!/configs/bonfire.example.yaml
!/configs/cdappconfig.json
/tools/bin/*
1 change: 0 additions & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ENV OPENSSL_FORCE_FIPS_MODE=1
WORKDIR /go/src/app
COPY . .
USER 0
RUN git log -1
RUN make get-deps build


Expand Down

0 comments on commit 05ce4fa

Please sign in to comment.