FROM rust
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get -y update &&
apt-get install -y --no-install-recommends
libasound2-dev assimp-utils git-lfs zip
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*
CMD cargo -V
RUN git lfs install
RUN git clone -b squish https://github.com/alanpoon/crayon-tools
RUN cd crayon-tools && git lfs pull
ENV PACKAGE crayon-cli
ENV ASSIMP utilities/assimp/bin_linux/assimp
ENV CRUNCH utilities/crunch/bin_linux/crunch
ENV PVRTEX utilities/PVRTexTool/CLI/linux/PVRTexToolCLI
ENV SYSMBOL_PATH /usr/local/bin
RUN cd crayon-tools && cargo --color always build --release
ENV DESTDIR target
RUN cd crayon-tools && mkdir -p target
&& mkdir -p ${DESTDIR}/${PACKAGE}
&& mkdir -p ${DESTDIR}/${PACKAGE}/utilities
&& cp ${ASSIMP} ${DESTDIR}/${PACKAGE}/utilities/assimp
&& cp -r ${CRUNCH} ${DESTDIR}/${PACKAGE}/utilities/crunch \
&& cp ${PVRTEX} ${DESTDIR}/${PACKAGE}/utilities/PVRTexToolCLI
&& cp target/release/crayon-cli ${DESTDIR}/${PACKAGE}/crayon-cli
&& ln -sf $PWD/${DESTDIR}/${PACKAGE}/crayon-cli ${SYSMBOL_PATH}/crayon-cli
RUN cargo install --vers 0.2.47 wasm-bindgen-cli
RUN chmod -R 777 crayon-tools
RUN chmod -R 777 /usr/local/cargo
RUN rustup target add wasm32-unknown-unknown
RUN mkdir workspace && cd workspace && git clone --single-branch --branch textedit https://github.com/alanpoon/crayon
&& cd crayon && cargo generate-lockfile
&& cargo fetch
RUN cd workspace && git clone --single-branch --branch crayon https://github.com/alanpoon/conrod
&& cd conrod && cargo generate-lockfile
&& cargo fetch
Content type
Image
Digest
Size
1.2 GB
Last updated
about 7 years ago
docker pull rustropy/crayon:version1.02