Skip to content

Instantly share code, notes, and snippets.

@StephenRadachy
Created December 13, 2019 05:19
Show Gist options
  • Save StephenRadachy/e65db3d71a08c8d7a9b3cddbbaad4a75 to your computer and use it in GitHub Desktop.
Save StephenRadachy/e65db3d71a08c8d7a9b3cddbbaad4a75 to your computer and use it in GitHub Desktop.
FROM debian:buster-slim
LABEL description="POC Docker image that demonstrates building basisu"
LABEL author="Stephen J Radachy <stephen@radachy.com>"
# Configuration
ARG BASIS_RELEASE="2f43afcc97d0a5dafdb73b4e24e123cf9687a418"
ARG BASIS_REPO="/basisu"
# Dependencies
RUN apt-get -qq update && apt-get install -y --no-install-recommends \
apt-transport-https ca-certificates \
git build-essential cmake &&\
update-ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Build + install basisu
RUN git init "${BASIS_REPO}" && \
cd "${BASIS_REPO}" && \
git remote add origin https://github.com/BinomialLLC/basis_universal.git && \
git fetch --depth 1 origin "${BASIS_RELEASE}" && \
git checkout FETCH_HEAD
RUN cd "${BASIS_REPO}" &&\
cmake CMakeLists.txt && make && make install &&\
cd / && rm -rf "${BASIS_REPO}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment