-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) · 1.5 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
############################
# STEP 1
############################
FROM docker.io/library/alpine:3.18.5 AS builder
# renovate: datasource=github-releases depName=errata-ai/vale
ENV VALE_VERSION=2.30.0
# renovate: datasource=github-releases depName=errata-ai/Microsoft
ENV MS_STYLE_VERSION=0.14.1
# renovate: datasource=github-releases depName=testthedocs/Openly
ENV OPENLY_STYLE_VERSION=0.4.4
# Install build tools
RUN apk add --no-cache wget zip tar
WORKDIR /
RUN wget -q https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz && \
tar -xzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz
# Install Microsoft style file
RUN wget -q https://github.com/errata-ai/Microsoft/releases/download/v${MS_STYLE_VERSION}/Microsoft.zip && \
unzip -qq Microsoft.zip
# Install Openly style file
RUN wget -q https://github.com/testthedocs/Openly/releases/download/${OPENLY_STYLE_VERSION}/Openly.zip && \
unzip -qq Openly.zip && \
sed -i 's|openly|Openly|g' Openly/Spelling.yml
############################
# STEP 2
############################
FROM docker.io/library/alpine:3.18.5
RUN apk add --update --no-cache \
python3 \
py-pip \
asciidoctor \
git \
libc6-compat \
&& pip install docutils
# Copy our static executable.
COPY --from=builder /vale /usr/local/bin/vale
COPY --from=builder /Microsoft /styles/Microsoft
COPY --from=builder /Openly /styles/Openly
COPY vale.ini /.vale.ini
COPY Vocab /styles/Vocab
ENTRYPOINT ["/usr/local/bin/vale"]