Skip to content

Commit

Permalink
COPY instead of ADD, clean after install
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Nov 9, 2015
1 parent ee642e7 commit 0ad9e98
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ ENV DEBIAN_FRONTEND noninteractive
LABEL Description="This image is used to create an environment to contribute to the cakephp/docs"

RUN apt-get update && apt-get install -y \
python-pip \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended
python-pip \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ADD ./requirements.txt /tmp/requirements.txt
RUN pip install -qr /tmp/requirements.txt
COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt

WORKDIR /data

Expand Down

0 comments on commit 0ad9e98

Please sign in to comment.