mirror of
https://github.com/docker/compose.git
synced 2025-06-01 04:10:13 +02:00
Fix Dockerfile reference URL in docs
This commit is contained in:
parent
75c430635b
commit
c66e18c913
@ -18,7 +18,7 @@ Let's set up the three files that'll get us started. First, our app is going to
|
|||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
|
|
||||||
That'll install our application inside an image with Python installed alongside all of our Python dependencies. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/use/builder/).
|
That'll install our application inside an image with Python installed alongside all of our Python dependencies. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/reference/builder/).
|
||||||
|
|
||||||
Second, we define our Python dependencies in a file called `requirements.txt`:
|
Second, we define our Python dependencies in a file called `requirements.txt`:
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ Next, we want to create a Docker image containing all of our app's dependencies.
|
|||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
This tells Docker to install Python, our code and our Python dependencies inside a Docker image. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/use/builder/).
|
This tells Docker to install Python, our code and our Python dependencies inside a Docker image. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/reference/builder/).
|
||||||
|
|
||||||
We then define a set of services using `fig.yml`:
|
We then define a set of services using `fig.yml`:
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Let's set up the three files that'll get us started. First, our app is going to
|
|||||||
RUN bundle install
|
RUN bundle install
|
||||||
ADD . /myapp
|
ADD . /myapp
|
||||||
|
|
||||||
That'll put our application code inside an image with Ruby, Bundler and all our dependencies. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/use/builder/).
|
That'll put our application code inside an image with Ruby, Bundler and all our dependencies. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/reference/builder/).
|
||||||
|
|
||||||
Next, we have a bootstrap `Gemfile` which just loads Rails. It'll be overwritten in a moment by `rails new`.
|
Next, we have a bootstrap `Gemfile` which just loads Rails. It'll be overwritten in a moment by `rails new`.
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ FROM orchardup/php5
|
|||||||
ADD . /code
|
ADD . /code
|
||||||
```
|
```
|
||||||
|
|
||||||
This instructs Docker on how to build an image that contains PHP and Wordpress. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/use/builder/).
|
This instructs Docker on how to build an image that contains PHP and Wordpress. For more information on how to write Dockerfiles, see the [Dockerfile tutorial](https://www.docker.io/learn/dockerfile/) and the [Dockerfile reference](http://docs.docker.io/en/latest/reference/builder/).
|
||||||
|
|
||||||
Next up, `fig.yml` starts our web service and a separate MySQL instance:
|
Next up, `fig.yml` starts our web service and a separate MySQL instance:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user