-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
79 lines (62 loc) · 1.81 KB
/
Dockerfile
File metadata and controls
79 lines (62 loc) · 1.81 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM alpine:3.23.2@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
HEALTHCHECK NONE
ARG USER_NAME=default
ARG USER_HOME=/home/default
ARG USER_ID=1000
ARG USER_GECOS=Default
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
# @TL FIXME: xml2rfc currently only in edge stream
RUN apk upgrade --no-cache \
&& apk add --no-cache \
aspell=0.60.8.1-r0 \
aspell-de=20161207.7.0-r0 \
aspell-en=2020.12.07-r0 \
aspell-fr=0.50.3-r0 \
aspell-ru=0.99_p7-r2 \
aspell-uk=1.4.0-r3 \
coreutils=9.8-r1 \
curl=8.17.0-r1 \
dasel=2.8.1-r14 \
gawk=5.3.2-r2 \
git=2.52.0-r0 \
grep=3.12-r0 \
html-xml-utils=8.7-r0 \
jq=1.8.1-r0 \
libxml2-utils=2.13.9-r0 \
libxslt=1.1.43-r3 \
maven=3.9.11-r0 \
npm=11.11.0-r0 \
openjdk21-jre-headless=21.0.10_p7-r0 \
pandoc-cli=3.8.2.1-r0 \
pipx=1.8.0-r0 \
py3-pip=25.1.1-r1 \
python3=3.12.13-r0 \
xmlindent=0.2.17-r3 \
xmlsec=1.3.9-r0 \
xmlstarlet=1.6.1-r2 \
xmlto=0.0.29-r0 \
yq-go=4.49.2-r5 \
&& apk cache --no-cache clean \
&& rm -rf /var/cache/apk/*
COPY requirements.txt /tmp/requirements.txt
RUN pipx ensurepath --global \
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
&& rm -f /tmp/requirements.txt
COPY package.json /tmp/package.json
RUN jq -r '.dependencies | to_entries[] | "\(.key)@\(.value)"' /tmp/package.json \
| xargs -n 1 npm install -g \
&& rm -f /tmp/package.json
RUN mkdir -p /opt/saxon
COPY pom.xml mvnw run.sh /opt/saxon/
COPY .mvn/ /opt/saxon/.mvn/
WORKDIR /opt/saxon
RUN ./mvnw dependency:copy-dependencies && chmod -R o+rX /opt/saxon
RUN adduser \
--home "${USER_HOME}" \
--uid "${USER_ID}" \
--gecos "${USER_GECOS}" \
--disabled-password \
"${USER_NAME}"
USER "${USER_NAME}"
ENV HOME="${USER_HOME}"
WORKDIR "${HOME}"