#!/usr/bin/env bash #set -x go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct export GO111MODULE=on export GOPROXY=https://goproxy.cn,https://goproxy.io,direct THIS_FILE=$(readlink -f $0) # readlink have no -f param in some macos if [ $? -ne 0 ]; then cd `dirname $0` TARGET_FILE=`basename $0` PHYS_DIR=`pwd -P` THIS_FILE=$PHYS_DIR/$TARGET_FILE cd - fi THIS_DIR=$(dirname $THIS_FILE) ROOT_DIR=${THIS_DIR}/.. cd ${ROOT_DIR} docker build -f Dockerfile -t lal:latest . docker run -it -p 8084:8084 -p 8080:8080 -p 1935:1935 -p 5544:5544 -p 8083:8083 lal /lal/bin/lalserver