-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (35 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:20.04 as cfdWasmBase
ARG EMSDK_VERSION=1.39.18
ARG NODE_VERSION=12.18.1
RUN apt-get update && apt-get install -y tzdata
ENV TZ=Asia/Tokyo
RUN apt-get install -y \
gpg \
wget \
csh \
cmake \
clang \
clang-format \
python \
nodejs \
npm \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /root
RUN npm install -g npm n && \
n $NODE_VERSION
RUN git clone https://github.com/emscripten-core/emsdk.git && \
cd /root/emsdk && \
./emsdk install $EMSDK_VERSION && \
./emsdk activate $EMSDK_VERSION
FROM cfdWasmBase as cfdWasmBuilder
ENV PATH /usr/local/bin:/root/emsdk:/root/emsdk/upstream/emscripten:/root/emsdk/node/12.18.1_64bit/bin:$PATH
ENV EMSDK /root/emsdk
ENV EM_CONFIG /root/emsdk/.emscripten
ENV EM_CACHE /root/emsdk/upstream/emscripten/cache
ENV EMSDK_NODE /root/emsdk/node/12.18.1_64bit/bin/node
WORKDIR /root
RUN node --version && cmake --version && clang --version && em++ --version && env
# RUN /root/emsdk/emsdk_env.sh
ENTRYPOINT ["/bin/bash", "-l", "-c"]