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:
parent
fc6775ed2e
commit
8b7e93bd67
|
@ -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
|
||||||
|
|
|
@ -10,3 +10,5 @@ services:
|
||||||
PORT: "12402"
|
PORT: "12402"
|
||||||
ports:
|
ports:
|
||||||
- "12402:12402"
|
- "12402:12402"
|
||||||
|
volumes:
|
||||||
|
- ./app:/app/app
|
||||||
|
|
Loading…
Reference in New Issue