Update asn1test docker image to python 3.14 and asn1c 0.9.29

Merge request reports

Loading
+21 −2
Changes for testing/dockerfiles/Dockerfile.asn1test: 21 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,9 +2,28 @@
# docker build -t forge.etsi.org:5050/li/schemas-definitions/asn1test -f Dockerfile.asn1test .
# docker push forge.etsi.org:5050/li/schemas-definitions/asn1test

FROM python:3.9-slim-bullseye
# Stage 1: Build asn1c 0.9.29

FROM python:3.14 AS build
WORKDIR /src

ARG VERSION=0.9.29

RUN curl -sSL -o "asn1c.tar.gz" "https://github.com/vlm/asn1c/releases/download/v${VERSION}/asn1c-${VERSION}.tar.gz" \
    && tar -xzf "asn1c.tar.gz" \
    && cd "asn1c-${VERSION}" \
    && ./configure \
    && make -j$(proc) \
    && make DESTDIR=/src/destdir install


# Stage 2: Build asn1test image

FROM python:3.14-slim

RUN apt-get update -y && \
    apt-get install -y asn1c && \
    apt-get install -y git && \
    rm -rf /var/lib/apt/lists/* && \
    pip install --no-cache-dir asn1tools pycrate

COPY --from=build /src/destdir/usr/local /usr/local
Loading