mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
21 lines
310 B
Bash
Executable file
21 lines
310 B
Bash
Executable file
#!/bin/bash
|
|
[ "$1" = -x ] && shift && set -x
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
cd ${DIR}/../..
|
|
|
|
TAG=$1
|
|
|
|
if [[ -z "${TAG}" ]]; then
|
|
TAG=${LIBRE_CHAT_DOCKER_TAG}
|
|
fi
|
|
|
|
if [[ -z "${TAG}" ]]; then
|
|
TAG=latest
|
|
fi
|
|
|
|
LOCAL_DOCKER_IMG=librechat:${TAG}
|
|
|
|
set -e
|
|
|
|
docker build -t ${LOCAL_DOCKER_IMG} .
|