Skip to content

Commit

Permalink
build: exclude Python bytecode from the container image
Browse files Browse the repository at this point in the history
This improves Docker build cache management by excluding what are in
effect temporary files from the build context.
  • Loading branch information
xenophonf committed Nov 30, 2023
1 parent e383374 commit 53dcaec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__pycache__
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
## Docker

# Git repo itself
.git/

## Python

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down

0 comments on commit 53dcaec

Please sign in to comment.