Skip to content

Commit a250001

Browse files
kaischroederruiterrsdunkelkohakukunfrericp
committed
Add Dockerfile to build the emscripten build target
Co-authored-by: Roland Ruiters-Christou <[email protected]> Co-authored-by: Sebastian Dunkel <[email protected]> Co-authored-by: Aura Munoz <[email protected]> Co-authored-by: Philipp Frericks <[email protected]> Co-authored-by: Cedrick Muenstermann <[email protected]>
1 parent c611b5f commit a250001

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM ubuntu:20.04
2+
SHELL ["/bin/bash", "-c"]
3+
4+
ARG CMAKE_VERSION=3.20.3
5+
ARG EMSCRIPTEN_VERSION=2.0.24
6+
7+
RUN apt-get -y update && apt-get install -y\
8+
python-setuptools \
9+
libglew-dev \
10+
libxrandr-dev \
11+
libxcursor-dev \
12+
libxinerama-dev \
13+
libxi-dev \
14+
python3-pip \
15+
git \
16+
curl
17+
18+
RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs libglib2.0-0
19+
20+
RUN pip install --upgrade pip
21+
RUN pip install PySide2 PyOpenGL Jinja2
22+
23+
# Updating cmake version
24+
RUN apt remove cmake
25+
RUN pip install cmake==${CMAKE_VERSION}
26+
27+
RUN mkdir -p tmp && cd tmp && git clone --recursive https://github.com/emscripten-core/emsdk
28+
RUN cd /tmp/emsdk && ./emsdk install ${EMSCRIPTEN_VERSION}
29+
RUN cd /tmp/emsdk && ./emsdk activate ${EMSCRIPTEN_VERSION} --permanent
30+
31+
COPY . /src/
32+
RUN source /tmp/emsdk/emsdk_env.sh && cd /src && python3 ./build_scripts/build_usd.py --emscripten USD_emscripten

0 commit comments

Comments
 (0)