use volumes instead of copying application files

This change drastically reduces the amount of rebuilding required during
application development and debugging stages.
This commit is contained in:
2024-10-28 14:08:23 +02:00
parent fc6775ed2e
commit 8b7e93bd67
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -9,6 +9,4 @@ COPY ./requirements.txt /app/requirements.txt
RUN python -m pip install -r requirements.txt RUN python -m pip install -r requirements.txt
COPY ./app/ /app/app/
CMD flask run -h 0.0.0.0 -p $PORT CMD flask run -h 0.0.0.0 -p $PORT
+2
View File
@@ -10,3 +10,5 @@ services:
PORT: "12402" PORT: "12402"
ports: ports:
- "12402:12402" - "12402:12402"
volumes:
- ./app:/app/app