mirror of https://github.com/docker/docs.git
Merge pull request #7209 from cpastro/patch-1
Change ADD to COPY in part2.md
This commit is contained in:
commit
58c86138b1
|
|
@ -69,7 +69,7 @@ FROM python:2.7-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the current directory contents into the container at /app
|
# Copy the current directory contents into the container at /app
|
||||||
ADD . /app
|
COPY . /app
|
||||||
|
|
||||||
# Install any needed packages specified in requirements.txt
|
# Install any needed packages specified in requirements.txt
|
||||||
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
||||||
|
|
@ -92,7 +92,7 @@ This `Dockerfile` refers to a couple of files we haven't created yet, namely
|
||||||
Create two more files, `requirements.txt` and `app.py`, and put them in the same
|
Create two more files, `requirements.txt` and `app.py`, and put them in the same
|
||||||
folder with the `Dockerfile`. This completes our app, which as you can see is
|
folder with the `Dockerfile`. This completes our app, which as you can see is
|
||||||
quite simple. When the above `Dockerfile` is built into an image, `app.py` and
|
quite simple. When the above `Dockerfile` is built into an image, `app.py` and
|
||||||
`requirements.txt` is present because of that `Dockerfile`'s `ADD` command,
|
`requirements.txt` is present because of that `Dockerfile`'s `COPY` command,
|
||||||
and the output from `app.py` is accessible over HTTP thanks to the `EXPOSE`
|
and the output from `app.py` is accessible over HTTP thanks to the `EXPOSE`
|
||||||
command.
|
command.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue