Skip to content

Commit e01c1dc

Browse files
committed
Add .python-version to .dockerignore
Fixes #2275 There is a bug where an existing .python-version file will be copied from an existing project into the Docker container and conflict with the Python version set in the cog.yaml. We now include the .python-version in the .dockerignore file so that it will not be copied into the container at build time.
1 parent 2ce4fed commit e01c1dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cli/init-templates/.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
**/.github
88
**/.gitignore
99

10+
# Exclude Python tooling
11+
.python-version
12+
1013
# Exclude Python cache files
1114
__pycache__
1215
.mypy_cache

0 commit comments

Comments
 (0)