mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
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.
6 lines
104 B
Go
6 lines
104 B
Go
FROM python:3.12-alpine
|
|
COPY . /code
|
|
WORKDIR /code
|
|
RUN pip install redis flask
|
|
CMD ["python", "app.py"]
|