Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'docs-website' into develop
- Loading branch information
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:2-slim-stretch | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV BUILDDIR /var/www | ||
RUN mkdir -p /usr/share/man/man1 \ | ||
&& apt-get update && apt-get install -yq python-sphinx plantuml make \ | ||
&& apt-get install --no-install-recommends -yq nginx \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ADD . /src | ||
|
||
RUN cd /src \ | ||
&& make BUILDDIR=$BUILDDIR clean html \ | ||
&& apt-get remove -yq python-sphinx plantuml make \ | ||
# forward request and error logs to docker log collector | ||
&& ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
&& ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80 | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |