mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 11:46:19 +08:00
Make image build process a bit simpler
Take full leverage of multi-stage docker build.
This commit is contained in:
@@ -23,8 +23,7 @@ build_linux() {
|
||||
# Linux Alpine based Docker image
|
||||
name="$DOCKER_BASE-alpine"
|
||||
DOCKER_BUILDS="$DOCKER_BUILDS $name"
|
||||
sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine
|
||||
docker build -f Dockerfile.alpine -t "$name:current" .
|
||||
docker build -f Dockerfile -t "$name:current" --target alpine .
|
||||
docker run "$name:current" sh -c 'shellcheck --version'
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user