-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathDockerfile
41 lines (33 loc) · 923 Bytes
/
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
FROM alpine:3.20.0
# hadolint ignore=DL3018
RUN ["apk", "add", "--no-cache", \
"curl", \
"g++", \
"gcc", \
"git", \
"graphviz", \
"jekyll", \
"make", \
"pandoc", \
"py3-pip", \
"python3"]
RUN python3 -m venv /path/to/venv
# hadolint ignore=DL3013
RUN . /path/to/venv/bin/activate \
&& pip install --no-cache-dir LinkChecker
RUN ["gem", "install", "--no-document", "guard-livereload", "mdl"]
RUN addgroup -S builder && adduser -SDH -G builder builder
WORKDIR /home/builder/build
COPY toktok /home/builder/build/toktok/
COPY Makefile /home/builder/build/
COPY entrypoint.sh /home/builder/
RUN ["chown", "-R", "builder:builder", "/home/builder"]
USER builder
RUN ["make", "hs-toxcore"]
RUN ["make", "toktok-site"]
COPY .md-style.rb /home/builder/build/
RUN ["make", "lint"]
RUN . /path/to/venv/bin/activate \
&& make check
WORKDIR /home/builder/build/toktok-site
ENTRYPOINT ["/home/builder/entrypoint.sh"]