-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (43 loc) · 1.11 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
44
45
46
47
48
49
50
51
52
53
# syntax=docker/dockerfile:1
# Container image that runs your code
FROM jekyll/jekyll
RUN apk update
# Common commands needed by the render scripts
RUN apk add --no-cache --update \
git \
perl \
ed \
openssh \
jq \
py3-pip
# Python modules
RUN pip install --upgrade pip && pip install \
setuptools \
jsonref \
pathlib
# Needed for GitHub Pages plugin
COPY Gemfile /Gemfile
RUN bundle install
# NMOS has its own RAML2HTML theme
RUN git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/AMWA-TV/raml2html-nmos-theme /raml2html-nmos-theme
# Node modules
RUN yarn global add \
jsonlint \
raml2html \
remark-cli \
remark-preset-lint-recommended \
remark-validate-links \
yaml-lint \
yamljs \
file:/raml2html-nmos-theme
# Copy the render scripts etc.
COPY *.sh *.py \
json-formatter.js \
scripts.mk \
intro_common.md \
/.scripts/
COPY codemirror /.scripts/codemirror/
# /entrypoint.sh is executed by default when the container runs
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
COPY multi-repo.sh /multi-repo.sh