mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-29 07:38:02 +02:00
flask: dev envs support & misc improvements (#263)
* Docker Desktop Development Environments config * Use cache volumes for pip * Upgrade from Python 3.7 -> Python 3.10 * Use port `8000` to avoid conflicts with Airplay on macOS for default Flask port `5000` * Use `SIGINT` to gracefully stop Flask Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
457fe0e668
commit
ec552567c7
5 changed files with 71 additions and 24 deletions
10
flask/.docker/docker-compose.yaml
Normal file
10
flask/.docker/docker-compose.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
services:
|
||||
web:
|
||||
build:
|
||||
context: app
|
||||
target: dev-envs
|
||||
stop_signal: SIGINT
|
||||
ports:
|
||||
- '8000:8000'
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
Loading…
Add table
Add a link
Reference in a new issue