-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt install -y --no-install-recommends \ | ||
python3 git openssl ca-certificates xz-utils \ | ||
bzip2 cmake make | ||
|
||
# Set the working directory to root (ie $HOME) | ||
WORKDIR root | ||
|
||
COPY test test | ||
COPY fuzz fuzz | ||
COPY CMakeLists.txt CMakeLists.txt | ||
COPY scripts scripts | ||
COPY src src | ||
|
||
RUN git clone https://github.com/emscripten-core/emsdk.git | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
# install tool | ||
RUN cd emsdk \ | ||
&& ./emsdk install 3.1.35 \ | ||
&& ./emsdk activate 3.1.35 \ | ||
&& source ./emsdk_env.sh \ | ||
&& emcc -v | ||
|
||
#Setup cmake | ||
RUN source ./emsdk/emsdk_env.sh \ | ||
&& emcmake cmake -DBuildTest=TRUE -B build . | ||
|
||
# build with make | ||
RUN source ./emsdk/emsdk_env.sh \ | ||
&& emmake make -C build |