1
0

Mount flask app into docker container to get 'live reloads'

This commit is contained in:
vlad 2024-10-07 17:10:55 -07:00
parent b1d53b845d
commit f1c5597025
2 changed files with 2 additions and 2 deletions

View File

@ -5,4 +5,4 @@ export DISPLAY=:1337
cd /breach/Into*
xvfb-run -n 1337 -s "-screen 0 1280x720x24" ./Breach &
/interface/main.py
while sleep 1; do /interface/main.py; done

2
go
View File

@ -8,7 +8,7 @@
run-service() {
_help-line "Start docker container with port 5000 exposed"
docker run --rm -ti -p 5000:5000 --name breach -e OPENAI_KEY=$(pass openai/project-key) itbaas
docker run --rm -ti -p 5000:5000 -v $PWD/interface:/interface --name breach -e OPENAI_KEY=$(pass openai/project-key) itbaas
}
build-image() {