summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorSofia Wallin <sofia.wallin@ericsson.com>2018-03-27 18:06:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-27 18:06:23 +0000
commit038e308c8f868fe123ef2f83ed6e7a7f570512e3 (patch)
treef4a93879e2dfac6283a261e0b24adacba76945a5 /docker/Dockerfile
parentc7c7a2c260d221a5d9a7c309e2881f6a5268fd95 (diff)
parent658778cd891d9327a1ce91e6bcbc8fcfd81e7cd6 (diff)
Merge "Add opnfvdocs build container"
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 000000000..fe1ff808a
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,23 @@
+FROM ubuntu:14.04
+
+MAINTAINER Julien Zhang <julienjut@gmail.com>
+LABEL version="0.1" Description="OPNFVDocs Docker container"
+
+ARG BRANCH=master
+ARG build=html
+ENV BRANCH=$BRANCH
+ENV build=$build
+
+# Dependencies for sphinx, pip and git
+RUN apt-get update && apt-get install -y \
+ python-pip python-sphinx git
+
+RUN git clone --depth=1 --branch=$BRANCH https://git.opnfv.org/opnfvdocs /opnfvdocs
+RUN pip install -r /opnfvdocs/etc/requirements.txt
+RUN pip install virtualenv
+RUN rm -rf /var/lib/apt-lists/* /root/.cache/pip /opnfvdocs/.git
+
+ADD ./entrypoint.sh /sbin/entrypoint.sh
+RUN chmod 755 /sbin/entrypoint.sh
+
+ENTRYPOINT /sbin/entrypoint.sh