fix(content): align compose demo Dockerfiles to COPY over ADD

The app and django compose demos used ADD for plain local files, but the
book's in-text versions of the same examples (11.3_usage.md, 11.6_django.md)
and its own guidance (7.2/7.3, appendix best_practices) all use COPY. Align
the demos with the documented practice.
This commit is contained in:
yeasy
2026-06-11 23:17:58 -07:00
parent 0cfd55af7b
commit 01a6b2dccd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,6 +2,6 @@ FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
COPY requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
COPY . /code/