-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
52 lines (39 loc) · 1.01 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
FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
HEALTHCHECK NONE
ARG USER_NAME=default
ARG USER_HOME=/home/default
ARG USER_ID=1000
ARG USER_GECOS=Default
# @TL FIXME: xml2rfc currently only in edge stream
# hadolint ignore=DL3018
RUN apk --update --no-cache add \
html-xml-utils \
libxml2-utils \
libxslt \
maven \
openjdk21-jre-headless \
py3-gpxpy \
py3-pip \
py3-tcx2gpx \
python3 \
python3-dev \
xmlindent \
xmlstarlet \
xmlto \
&& rm -rf /var/cache/apk/*
# hadolint ignore=DL3013
RUN pip3 install --no-cache-dir --upgrade --break-system-packages yq
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}"
ENV HOME "${USER_HOME}"
USER "${USER_NAME}"
WORKDIR "${HOME}"