-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (35 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM alpine:3.9
LABEL maintainer="OSC"
# Set language to avoid bugs that sometimes appear
ENV LANG en_US.UTF-8
# Set up requirements
RUN apk upgrade --update \
&& apk --no-cache add \
python3 \
py3-pip \
make \
openjdk8-jre \
ttf-dejavu \
graphviz \
ruby ruby-dev yaml-dev g++ make
# Install PlantUML
RUN apk add --no-cache --virtual .ssl-deps \
openssl \
ca-certificates \
&& mkdir -p /opt \
&& wget -O "/opt/plantuml.jar" "https://sourceforge.net/projects/plantuml/files/plantuml.jar" \
&& printf '#!/bin/sh -e\njava -jar /opt/plantuml.jar "$@"' > /usr/local/bin/plantuml \
&& chmod 755 /usr/local/bin/plantuml \
&& apk del .ssl-deps
# Install Sphinx and extras
ADD requirements.txt /tmp/
RUN python3 -m pip install wheel \
&& python3 -m pip install -r /tmp/requirements.txt \
&& rm -rf /tmp/requirements.txt
# Add ruby gems we need to build
RUN gem install \
rdoc rake --no-document
# Stop Java from writing files in documentation source
ENV _JAVA_OPTIONS -Duser.home=/tmp
# Set working directory to documentation root
WORKDIR /doc