Skip to content

Commit fcbbb79

Browse files
committed
fix: docker image content
- [x] add .dockerignore to ensure non application files/test files don't get into the container image Tested locally with the following commands: ```bash ➜ docker build . --tag test:1 ➜ docker run -it --rm --name debug --entrypoint /bin/bash test:1 ## inside container root@3624b051f2c8:/action/workspace# ls -lah total 44K drwxr-xr-x 1 root root 4.0K May 27 13:11 . drwxr-xr-x 1 root root 4.0K May 27 13:11 .. -rw-r--r-- 1 root root 1.8K Jan 7 10:26 auth.py -rw-r--r-- 1 root root 4.4K Mar 30 23:25 env.py -rw-r--r-- 1 root root 68 Apr 4 04:04 requirements.txt -rwxr-xr-x 1 root root 14K May 27 12:11 stale_repos.py ``` Signed-off-by: jmeridth <[email protected]>
1 parent 78ca94e commit fcbbb79

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.dockerignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Application specific filesAdd commentMore actions
2+
test_*.py
3+
4+
# Python
5+
*.pyc
6+
__pycache__/
7+
*.pyo
8+
*.pyd
9+
10+
# Common
11+
*.md
12+
docker-compose.yml
13+
Dockerfile*
14+
.env*
15+
Makefile
16+
17+
# Logs
18+
logs
19+
*.log
20+
21+
# IDE's
22+
.vscode/
23+
.idea/
24+
25+
# Dependency directories
26+
node_modules/
27+
.venv/
28+
29+
## Cache directories
30+
.parcel-cache
31+
32+
# git
33+
.git
34+
.gitattributes
35+
.gitignore
36+
.github/

0 commit comments

Comments
 (0)