-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (25 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
43 lines (25 loc) · 837 Bytes
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:latest AS build
RUN apk add npm
WORKDIR /usr/app
COPY doc-ui /usr/app
RUN npm install
RUN ./node_modules/gulp/bin/gulp.js bundle
FROM alpine:latest AS ui
COPY --from=build /usr/app/build/ui-bundle.zip /usr/app/ui-bundle.zip
FROM alpine:latest
RUN apk add git
RUN apk add npm
RUN apk add ruby ruby-dev gcc g++ make
RUN mkdir /home/antora
WORKDIR /home/antora
COPY docs-site/package.json .
RUN npm install
RUN gem install asciidoctor
RUN gem install asciidoctor-pdf
RUN gem install rouge
RUN gem install kramdown-asciidoc
RUN apk del ruby-dev gcc g++ make
ENV PATH="$PATH:/home/antora/node_modules/@antora/cli/bin/"
COPY --from=ui /usr/app/ui-bundle.zip .
WORKDIR /usr/app
CMD ["antora", "--clean", "--stacktrace", "--log-failure-level=warn", "--log-level=all", "/usr/app/doc/docs-site/antora-playbook.yml"]