forked from Conjure-Tools/unity-runner
Added blender to dockerfile
This commit is contained in:
parent
c16def4bed
commit
278fefb6e0
@ -13,15 +13,30 @@ RUN apt-get update && \
|
|||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libsqlite3-dev
|
libsqlite3-dev
|
||||||
|
|
||||||
# Set up Node.js environment for github actions
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
|
||||||
apt-get install -y nodejs && \
|
|
||||||
npm install -g npm@latest
|
|
||||||
|
|
||||||
# Set up the scripts
|
# Set up the scripts
|
||||||
RUN git clone --depth=1 https://github.com/game-ci/unity-builder.git /gameci && \
|
RUN git clone --depth=1 https://github.com/game-ci/unity-builder.git /gameci && \
|
||||||
cp -rf /gameci/dist/platforms/ubuntu/steps /steps && \
|
cp -rf /gameci/dist/platforms/ubuntu/steps /steps && \
|
||||||
cp -rf /gameci/dist/default-build-script /UnityBuilderAction && \
|
cp -rf /gameci/dist/default-build-script /UnityBuilderAction && \
|
||||||
cp /gameci/dist/platforms/ubuntu/entrypoint.sh /entrypoint.sh
|
cp /gameci/dist/platforms/ubuntu/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
# Set up Node.js environment for github actions
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||||
|
apt-get install -y nodejs && \
|
||||||
|
npm install -g npm@latest
|
||||||
|
|
||||||
|
# Install Blender
|
||||||
|
ARG BLENDER_SHORT_VERSION=3.4
|
||||||
|
ARG BLENDER_FULL_VERSION=3.4.1
|
||||||
|
|
||||||
|
RUN echo "BLENDER_SHORT_VERSION: $BLENDER_SHORT_VERSION"
|
||||||
|
RUN echo "BLENDER_FULL_VERSION: $BLENDER_FULL_VERSION"
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y wget && \
|
||||||
|
wget https://download.blender.org/release/Blender$BLENDER_SHORT_VERSION/blender-$BLENDER_FULL_VERSION-linux-x64.tar.xz && \
|
||||||
|
tar -xf blender-$BLENDER_FULL_VERSION-linux-x64.tar.xz && \
|
||||||
|
rm blender-$BLENDER_FULL_VERSION-linux-x64.tar.xz
|
||||||
|
|
||||||
|
ENV PATH="$PATH:/blender-$BLENDER_FULL_VERSION-linux-x64"
|
||||||
|
|
||||||
|
# Done
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
Loading…
x
Reference in New Issue
Block a user