litebb/docker-run.sh

1#!/bin/bash 2 3PORT=3000 4DOCKER_IMAGE_TAG=$1 5 6# for volume 7# /tmp/litebb/dbs is in host machine 8# /opt/litebb/dbs is inside the container 9 10docker run -it --rm \ 11 -p "$PORT:$PORT" \ 12 --env-file .env \ 13 -e NODE_ENV='production' \ 14 --volume /tmp/litebb/dbs:/opt/litebb/dbs \ 15 "${DOCKER_IMAGE_TAG}"