add: Makefile for local development
All checks were successful
Build and Deploy Erika CV / build-and-deploy (push) Successful in 35s
All checks were successful
Build and Deploy Erika CV / build-and-deploy (push) Successful in 35s
- make run → kør lokalt med Flask (port 5000) - make docker-run → byg og kør i Docker
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
.PHONY: run install docker-build docker-run stop
|
||||
|
||||
run: install
|
||||
FLASK_ENV=development python app.py
|
||||
|
||||
install:
|
||||
pip install -r requirements.txt --quiet
|
||||
|
||||
docker-build:
|
||||
docker build -t web-erika .
|
||||
|
||||
docker-run: docker-build
|
||||
docker run --rm -p 5000:5000 web-erika
|
||||
|
||||
stop:
|
||||
@docker ps -q --filter name=web-erika | xargs -r docker stop
|
||||
Reference in New Issue
Block a user