mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +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.
8 lines
146 B
Go
8 lines
146 B
Go
FROM python:3
|
|
ENV PYTHONUNBUFFERED 1
|
|
RUN mkdir /code
|
|
WORKDIR /code
|
|
COPY requirements.txt /code/
|
|
RUN pip install -r requirements.txt
|
|
COPY . /code/
|