-
Notifications
You must be signed in to change notification settings - Fork 0
/
runContainer.sh
executable file
·14 lines (14 loc) · 1.1 KB
/
runContainer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#
# Build:
# DOCKER_BUILDKIT=1 docker build \
# --build-arg SOURCE_BRANCH=$(git rev-parse --abbrev-ref HEAD) \
# --build-arg SOURCE_COMMIT=$(git rev-parse HEAD) \
# -f Dockerfile.alpine \
# -t chaosengine/dotnetplayground:alpine .
#
# Run:
# docker run -it --rm -p 8080:5000 --name dotnetplayground --env-file docker-env.txt -v /home/container/Dotnet-Playground/sockets:/sockets -v /home/container/Dotnet-Playground/shared:/shared -v /var/www/localhost/htdocs/webcamgallery:/webcamgallery chaosengine/dotnetplayground
# docker run -it --rm -p 8080:5000 --name dotnetplayground --env-file docker-env.txt -v /home/container/Dotnet-Playground/sockets:/sockets -v /home/container/Dotnet-Playground/shared:/shared -v /var/www/localhost/htdocs/webcamgallery:/webcamgallery chaosengine/dotnetplayground:alpine
#
docker run -d --rm -p 8080:8080 --name dotnetplayground --hostname DotnetPlayground -e TZ=$(cat /etc/timezone) --env-file docker-prod.env -v /run/mysqld:/sockets -v $(pwd)/shared:/shared -v /var/www/localhost/htdocs/webcamgallery:/webcamgallery:ro chaosengine/dotnetplayground:alpine