initial commit
This commit is contained in:
commit
9d018e00be
82 files changed
+2407
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# DEVELOPMENT SERVER
|
||||
|
||||
build-dev:
|
||||
docker build -t max-dev -f Dockerfile.dev .
|
||||
|
||||
run-dev: | build-dev
|
||||
bash -c "trap 'docker-compose -f dc.dev.yml down' EXIT; MAX_COMMAND=\"flask run --host 0.0.0.0 --port 8000\" docker-compose -f dc.dev.yml up --build"
|
||||
|
||||
run-dev-interactive: | build-dev
|
||||
MAX_COMMAND="sleep infinity" docker-compose -f dc.dev.yml up -d
|
||||
docker-compose -f dc.dev.yml exec max "./entrypoint.sh"
|
||||
docker-compose -f dc.dev.yml exec max bash || true
|
||||
docker-compose -f dc.dev.yml down
|
||||
|
||||
run-cleanup: | build-dev
|
||||
docker run -ti -v `pwd`/max:/app/max max-dev ./cleanup.sh
|
||||
|
||||
# PROD
|
||||
|
||||
build-prod:
|
||||
docker build -t max .
|
||||
Reference in new issue
Block a user