ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:1d7c45546e94b90e941c5bf5c7a5d415d7b868581ad96171d4beb76caa8ab683 in / |
CMD ["/bin/bash"] |
COPY /scripts /scripts # buildkit |
RUN /bin/sh -c bash /scripts/init-apt.sh && apt install -y build-essential cmake make git python3 # buildkit |
COPY ./draco /tmp/draco # buildkit |
WORKDIR /tmp/draco |
RUN /bin/sh -c sed -i 's|https://gitlab.com/libeigen/eigen.git|https://git.martin98.com/GitHub-Proxy/eigen.git|g' .gitmodules && sed -i 's|https://github.com/gulrak/filesystem|https://git.martin98.com/GitHub-Proxy/filesystem.git|g' .gitmodules && sed -i 's|https://github.com/google/googletest.git|https://git.martin98.com/GitHub-Proxy/googletest.git|g' .gitmodules && sed -i 's|https://github.com/syoyo/tinygltf.git|https://git.martin98.com/GitHub-Proxy/tinygltf.git|g' .gitmodules && git submodule sync && git submodule update --init && grep -q "#include <cstdint>" src/draco/io/gltf_utils.h || sed -i '1i#include <cstdint>' src/draco/io/gltf_utils.h && mkdir build && cd build && cmake ../ -DDRACO_TRANSCODER_SUPPORTED=ON && make && mv /tmp/draco/build /opt/draco # buildkit |