mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Make build step optional in Linux docker containers
This commit is contained in:
parent
e7f99356e9
commit
742e4a5cd2
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# use './run.sh serve' to daemonize
|
# - use 'BUILD=1 ./run.sh' to build image & run.
|
||||||
|
# - use './run.sh serve' to daemonize.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -15,7 +16,9 @@ else
|
||||||
arch=amd64
|
arch=amd64
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCKER_BUILDKIT=1 docker build -f Dockerfile.${arch} --tag linci .
|
if [ -n "$BUILD" ]; then
|
||||||
|
DOCKER_BUILDKIT=1 docker build -f Dockerfile.${arch} --tag linci .
|
||||||
|
fi
|
||||||
|
|
||||||
if docker container inspect linci > /dev/null 2>&1; then
|
if docker container inspect linci > /dev/null 2>&1; then
|
||||||
docker stop linci || true
|
docker stop linci || true
|
||||||
|
|
Loading…
Reference in a new issue