Skip to content

Commit 32034a8

Browse files
committed
Ignore filenames starting with '.' but not the current dir
In the Hyperledger Fabric docker agent, I want to igore files starting with '.' like `.venv` for the python virtual environment for personal development. Thus, I added `.*` in the `.dockerignore`. However, this causes a warning when building the docker image because for `COPY . .` because the current path `.` is also included in `.*`. Therefore, `!.` is added to the dockerfile to suppress the warning. Signed-off-by: dodo920306 <dodo920306@gmail.com>
1 parent 38b5aaa commit 32034a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.*
2+
!.
23
cello
34
hyperledger_cello_hyperledger_fabric_agent

0 commit comments

Comments
 (0)