set up docker image

This commit is contained in:
2022-06-03 08:48:17 -05:00
parent 1164e1e66c
commit 6577fe4396
5 changed files with 40 additions and 61 deletions

9
docker.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
docker build -t wordlinator:latest .
if [ "$1" = "--debug" ]; then
docker run -d --rm -p 8050:8050 -e DEBUG=true -e DB_PORT -e DB_HOST -e DB_PASS --name wordlinator wordlinator:latest
else
docker run -d --rm -p 8050:8050 -e DB_PORT -e DB_HOST -e DB_PASS --name wordlinator wordlinator:latest
fi