2019-03-03 12:42:46 +00:00
|
|
|
ARG CODENAME=bionic
|
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
FROM arm32v7/ubuntu:$CODENAME as builder
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
COPY docker/qemu-arm-static-* /usr/bin/qemu-arm-static
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
2019-03-19 23:58:06 +00:00
|
|
|
&& apt upgrade -y \
|
2019-03-03 12:42:46 +00:00
|
|
|
&& apt install --yes --no-install-recommends \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
ninja-build \
|
2019-03-19 23:58:06 +00:00
|
|
|
pkg-config \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
COPY src /usr/local/src
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
ARG PARALLELMFLAGS=-j2
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
RUN set -x \
|
|
|
|
&& mkdir -p /tmp/out \
|
|
|
|
&& cd /tmp/out \
|
|
|
|
&& cmake /usr/local/src/googletest-release-* \
|
|
|
|
&& make $PARALLELMFLAGS install \
|
|
|
|
&& rm -rf /tmp/out
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
|
|
|
&& apt install --yes --no-install-recommends \
|
|
|
|
libtool \
|
|
|
|
automake \
|
|
|
|
gettext \
|
2019-03-20 23:43:53 +00:00
|
|
|
&& cd /usr/local/src/libfuse-fuse-* \
|
|
|
|
&& ./makeconf.sh \
|
|
|
|
&& mkdir -p /tmp/out \
|
|
|
|
&& cd /tmp/out \
|
|
|
|
&& /usr/local/src/libfuse-fuse-*/configure \
|
|
|
|
&& make $PARALLELMFLAGS install \
|
|
|
|
&& rm -rf /tmp/out \
|
2019-03-19 23:58:06 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
2019-03-19 23:58:06 +00:00
|
|
|
&& apt update \
|
2019-03-03 12:42:46 +00:00
|
|
|
&& apt install --yes --no-install-recommends \
|
2019-03-20 23:43:53 +00:00
|
|
|
openssl \
|
2019-03-03 12:42:46 +00:00
|
|
|
libssl-dev \
|
2019-03-20 23:43:53 +00:00
|
|
|
&& mkdir -p /tmp/out \
|
|
|
|
&& cd /tmp/out \
|
|
|
|
&& cmake /usr/local/src/libwebsockets-* \
|
|
|
|
&& make $PARALLELMFLAGS install \
|
|
|
|
&& rm -rf /tmp/out \
|
2019-03-19 23:58:06 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
2019-03-20 23:43:53 +00:00
|
|
|
&& mkdir -p /tmp/out \
|
|
|
|
&& cd /tmp/out \
|
|
|
|
&& cmake -DJANSSON_BUILD_DOCS=OFF /usr/local/src/jansson-* \
|
|
|
|
&& make $PARALLELMFLAGS install \
|
|
|
|
&& rm -rf /tmp/out
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
|
|
|
|
2019-03-20 00:32:55 +00:00
|
|
|
ARG USERID=1000
|
|
|
|
|
|
|
|
RUN useradd -u $USERID -ms /bin/bash user
|
|
|
|
|
2019-03-03 12:42:46 +00:00
|
|
|
|