Skip to content

Commit

Permalink
ci: removing test files from docker images (#4377)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopeixotocx committed Oct 13, 2021
1 parent 933ba40 commit 8c89a68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ sonar-project.properties
*.zip
Dockerfile
Dockerfile.*
assets/queries/**/test
assets/template
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ RUN apk add --no-cache \

# Copy built binary to the runtime container
COPY --from=build_env /app/bin/kics /app/bin/kics
COPY --from=build_env /app/assets/ /app/bin/assets/
COPY --from=build_env /app/assets/queries /app/bin/assets/queries
COPY --from=build_env /app/assets/libraries/* /app/bin/assets/libraries/

WORKDIR /app/bin

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ RUN apt-get install git -y \
&& rm -rf /var/lib/apt/lists/*

COPY --from=build_env /app/bin/kics /app/bin/kics
COPY --from=build_env /app/assets/ /app/bin/assets/
COPY --from=build_env /app/assets/queries /app/bin/assets/queries
COPY --from=build_env /app/assets/libraries/* /app/bin/assets/libraries/

WORKDIR /app/bin

Expand Down

0 comments on commit 8c89a68

Please sign in to comment.