From 8f9ce6d3216c922031c66d0a06e3cae85b55def0 Mon Sep 17 00:00:00 2001 From: trgiangdo Date: Fri, 17 Jan 2025 16:25:18 +0700 Subject: [PATCH] fix: update dev Dockerfile to install from requirements.txt first before copy the entire app --- docs/userman/run-deploy/deploy/docker/development.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/userman/run-deploy/deploy/docker/development.md b/docs/userman/run-deploy/deploy/docker/development.md index ed37dd5be..49aa05f25 100644 --- a/docs/userman/run-deploy/deploy/docker/development.md +++ b/docs/userman/run-deploy/deploy/docker/development.md @@ -17,9 +17,11 @@ EXPOSE 5000 # Install your application WORKDIR /app -COPY . /app +COPY requirements.txt /app/ RUN pip install -r requirements.txt +COPY . /app + # Start up command CMD python main.py -P 5000 -H 0.0.0.0 --debug ```