Skip to content

Commit

Permalink
Create deploy.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed May 28, 2016
1 parent 7003793 commit 83a8d3c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions deploy.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
FROM debian:jessie

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 \
texlive-lang-all \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y \
nginx curl php5 php5-curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt /tmp/

RUN pip install -r /tmp/requirements.txt

WORKDIR /data

COPY . /data

RUN make website

RUN rm -rf /var/www/html/* \
&& mkdir -p /var/www/html/2.0/ \
&& cp -a /data/website/. /var/www/html/2.0/

# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 83a8d3c

Please sign in to comment.