Loading testing/dockerfiles/Dockerfile.pyproject +34 Changes for testing/dockerfiles/Dockerfile.pyproject: 34 added lines, 0 removed lines. Original line number Diff line number Diff line # Run at top level of the repository: # # docker login forge.etsi.org:5050 # docker build -t forge.etsi.org:5050/li/schemas-definitions/asn1test:pyproject -f testing/dockerfiles/Dockerfile.pyproject . # docker push forge.etsi.org:5050/li/schemas-definitions/asn1test:pyproject # 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 COPY pyproject.toml /src/pyproject.toml RUN apt-get update -y && \ apt-get install -y git && \ rm -rf /var/lib/apt/lists/* && \ pip install --no-cache-dir uv && \ uv pip install --system -n -r /src/pyproject.toml COPY --from=build /src/destdir/usr/local /usr/local Loading
testing/dockerfiles/Dockerfile.pyproject +34 Changes for testing/dockerfiles/Dockerfile.pyproject: 34 added lines, 0 removed lines. Original line number Diff line number Diff line # Run at top level of the repository: # # docker login forge.etsi.org:5050 # docker build -t forge.etsi.org:5050/li/schemas-definitions/asn1test:pyproject -f testing/dockerfiles/Dockerfile.pyproject . # docker push forge.etsi.org:5050/li/schemas-definitions/asn1test:pyproject # 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 COPY pyproject.toml /src/pyproject.toml RUN apt-get update -y && \ apt-get install -y git && \ rm -rf /var/lib/apt/lists/* && \ pip install --no-cache-dir uv && \ uv pip install --system -n -r /src/pyproject.toml COPY --from=build /src/destdir/usr/local /usr/local