Files
I2P_Website/site-updater-docker.sh

15 lines
636 B
Bash
Raw Normal View History

#! /usr/bin/env bash
## Set additional docker run arguments by changing the variable
## i2p_www_docker_run_args
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" || exit
2021-03-04 14:58:20 -05:00
cd "$DIR"
git pull origin master
2021-08-13 16:43:44 -04:00
docker build --no-cache -t i2p-mirror/i2p.www .
docker rm -f mirror.i2p.www
#docker run -itd $i2p_www_docker_run_args --name mirror.i2p.www -p 0.0.0.0:8090:80 i2p-mirror/i2p.www
docker run -it --net=host --name i2p.www -p 5000:5000 --volume "`pwd`":/var/www/i2p.www --env DEV=on i2p-mirror/i2p.www ./runserver.py
#docker run -td --name mirror.i2p.www --restart=always -p 0.0.0.0:5000:5000 i2p-mirror/i2p.www