neko/server/dev/build
Miroslav Šedivý 68e23fa8e7 fix server dev.
2025-04-03 14:17:59 +02:00

18 lines
489 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:src -f ../Dockerfile ..
echo "Building base image"
../../build -y -b neko_server:base -f "$1"
echo "Building app image"
docker build -t neko_server:app --build-arg "BASE_IMAGE=neko_server:base" -f ./runtime/Dockerfile ./runtime