mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 02:16:21 +02:00
17 lines
536 B
Bash
Executable file
17 lines
536 B
Bash
Executable file
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
#
|
|
# aborting if any command returns a non-zero value
|
|
set -e
|
|
|
|
GIT_COMMIT=`git rev-parse --short HEAD`
|
|
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
|
|
|
|
echo "Building server image"
|
|
docker build -t neko_server --build-arg "GIT_COMMIT=$GIT_COMMIT" --build-arg "GIT_BRANCH=$GIT_BRANCH" -f ../Dockerfile ..
|
|
|
|
BUILD_IMAGE=neko_server FLAVOUR=$1 ../../build
|
|
|
|
echo "Building app image"
|
|
docker build -t neko_server:app --build-arg "BASE_IMAGE=neko_server:base" -f ./runtime/Dockerfile ./runtime
|