mirror of https://github.com/docker/docs.git
remove unnecessary commands
these lines aren't needed anymore, and add extra layers to the final image.
This commit is contained in:
parent
8602d81ca4
commit
451612fd48
|
@ -28,7 +28,6 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
|
|||
```dockerfile
|
||||
FROM python:3
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
COPY requirements.txt /code/
|
||||
RUN pip install -r requirements.txt
|
||||
|
|
|
@ -15,7 +15,6 @@ Dockerfile consists of:
|
|||
|
||||
FROM ruby:2.5
|
||||
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
|
||||
RUN mkdir /myapp
|
||||
WORKDIR /myapp
|
||||
COPY Gemfile /myapp/Gemfile
|
||||
COPY Gemfile.lock /myapp/Gemfile.lock
|
||||
|
|
Loading…
Reference in New Issue