Dockerfile 824 Bytes
Newer Older
1
2
3
# Copyright ETSI 2017
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt

4
FROM alpine:3.10.0
5

6
RUN env
7
8
9
10
RUN apk update
RUN apk add bash
RUN apk add nodejs
RUN apk add nodejs-npm
11
12
RUN apk add asciidoctor
RUN apk add openjdk8
13
RUN apk add ca-certificates wget && update-ca-certificates 
14
15
16
17
RUN apk add openssl
RUN gem install rdoc --pre || gem install rdoc --pre
RUN gem install asciidoctor-pdf-cjk
RUN wget https://forge.etsi.org/swagger2markup-cli-1.3.2.jar
18
RUN npm config set proxy $http_proxy
19
20
21
RUN npm install -g swagger-cli
RUN npm install -g json-refs
RUN npm install -g yamljs
22
23
24
25

ADD validate-in-docker.sh /validate-in-docker.sh
RUN chmod +x /validate-in-docker.sh

26
27
28
29
30
31
ADD swg2mrkup /bin/swg2mrkup
RUN chmod +x /bin/swg2mrkup

ADD oas2pdf /bin/oas2pdf
RUN chmod +x /bin/oas2pdf

32
33
ENTRYPOINT ["/validate-in-docker.sh"]