Skip to content

Commit

Permalink
Update docs container
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 16, 2019
1 parent 7c2ac39 commit f5d0ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs.Dockerfile
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@ FROM markstory/cakephp-docs-builder as builder
RUN pip install git+https://github.com/sphinx-contrib/video.git@master

# Copy entire repo in with .git so we can build all versions in one image.
COPY . /data/src
COPY docs /data/src

# Make docs
RUN cd /data/docs-builder \
&& make website LANGS="en fr ja pt" SOURCE=/data/src/docs DEST=/data/website/ \
&& make website LANGS="en fr ja pt" SOURCE=/data/src DEST=/data/website/ \
# Move media files into the output directory so video elements work.
&& mkdir -p /data/website/html/_static \
&& cp /data/src/docs/static/* /data/website/html/_static/ \
&& cp /data/src/static/* /data/website/html/_static/ \

# Build a small nginx container with just the static site in it.
FROM nginx:1.15-alpine
@@ -20,5 +20,5 @@ COPY --from=builder /data/website /data/website
COPY --from=builder /data/docs-builder/nginx.conf /etc/nginx/conf.d/default.conf

# Move files into final location
RUN mv /data/website/html/ /usr/share/nginx/html/
RUN mv /data/website/html/* /usr/share/nginx/html/
RUN ln -s /data/website/html/ /usr/share/html/3.x/

0 comments on commit f5d0ead

Please sign in to comment.