Skip to content

Commit 3142e45

Browse files
committed
fix: docker image building management
- [x] update Dockerfile to use `*.py` so we don't forget any python files in future - [x] add .dockerignore to ensure non application files/test files don't get into the container image Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent 3477b64 commit 3142e45

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.dockerignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Application specific files
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/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LABEL com.github.actions.name="stale-repos" \
1111
org.opencontainers.image.description="Find stale repositories in a GitHub organization."
1212

1313
WORKDIR /action/workspace
14-
COPY requirements.txt stale_repos.py env.py auth.py /action/workspace/
14+
COPY requirements.txt *.py /action/workspace/
1515

1616
RUN python3 -m pip install --no-cache-dir -r requirements.txt \
1717
&& apt-get -y update \

0 commit comments

Comments
 (0)