containerfiles/erpnext/mk-container.sh

15 lines
398 B
Bash
Raw Normal View History

2022-12-19 15:23:40 +01:00
#!/bin/bash
#
# Build custom backend container
#
script_dir="$(
cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit 1
pwd -P
)"
cd "$script_dir" || exit 1
. main.env || exit 2
DOCKER_BUILDKIT=1 docker build . -f backend.Containerfile --build-arg ERPNEXT_VERSION="${ERPNEXT_VERSION:?}" -t "jilits/erpnext-worker:${ERPNEXT_VERSION}" -t "git.jilits.se/jilits/erpnext-worker:${ERPNEXT_VERSION}"