mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: create a temporary .dockerignore during the docker build step (#1173)
This speeds up the 'docker build' step, as it reduces the amount of 'build context' that needs to be sent to docker.
This commit is contained in:
parent
a624b24bfc
commit
0a9b67976c
@ -65,7 +65,9 @@ fi
|
||||
|
||||
IMAGE_ID="etcher-build-$ARGV_ARCHITECTURE"
|
||||
|
||||
cp "$ARGV_SOURCE_CODE_DIRECTORY/.gitignore" "$ARGV_SOURCE_CODE_DIRECTORY/.dockerignore"
|
||||
docker build -f "$DOCKERFILE" -t "$IMAGE_ID" "$ARGV_SOURCE_CODE_DIRECTORY"
|
||||
rm -f "$ARGV_SOURCE_CODE_DIRECTORY/.dockerignore"
|
||||
|
||||
# Docker complaints with: ". includes invalid characters for a local
|
||||
# volume name, only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed" otherwise
|
||||
|
Loading…
x
Reference in New Issue
Block a user