Refactor Docker setup: update docker-compose.yml to use a specific website directory for volumes, enable automatic restarts, and modify Dockerfile to clean up and copy application files more efficiently.

This commit is contained in:
2025-04-20 19:25:08 +01:00
parent a073b09115
commit 6da85cdece
2 changed files with 9 additions and 3 deletions

View File

@@ -5,11 +5,13 @@ services:
build:
context: .
dockerfile: Dockerfile
force: true
ports:
- "5000:5000"
volumes:
- .:/app
- ./website:/app/website
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
command: python website/app.py
command: python website/app.py
restart: always