Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
goshiz committed Jul 5, 2023
1 parent 3892d44 commit 4177d24
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FROM ubuntu:20.04

WORKDIR /tmp

ARG DEBIAN_FRONTEND=noninteractive
ARG EMSCRIPTEN=/tmp/emsdk/upstream/emscripten

RUN apt update \
&& apt-get install -y \
build-essential \
cmake pkg-config \
libssl-dev \
libzmq3-dev \
libsodium-dev \
libunwind8-dev \
liblzma-dev \
libreadline6-dev \
libpgm-dev \
qttools5-dev-tools \
libhidapi-dev \
libusb-1.0-0-dev \
libprotobuf-dev \
protobuf-compiler \
libudev-dev \
python3 \
ccache \
libexpat1-dev \
bison \
flex \
wget \
git

WORKDIR /root/

RUN wget https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.bz2 \
&& tar -xf expat-2.4.8.tar.bz2 \
&& rm expat-2.4.8.tar.bz2 \
&& cd expat-2.4.8 \
&& ./configure --enable-static --disable-shared \
&& make \
&& make install

RUN wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.17.0.tar.gz \
&& tar xzf unbound-1.17.0.tar.gz \
&& cd unbound-1.17.0 \
&& ./configure --with-libexpat=/usr --with-ssl=/usr \
&& make \
&& make install

WORKDIR /tmp
COPY . .



RUN cd emsdk \
&& . ./emsdk_env.sh \
&& cd .. \
&& ./bin/build_ci.sh

0 comments on commit 4177d24

Please sign in to comment.