Commit 32034a8
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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
0 commit comments