2019-04-06 06:09:21 +00:00
|
|
|
ARG REGISTRY_PREFIX=''
|
2020-05-25 22:44:25 +00:00
|
|
|
ARG DISTRIB_VERSION=3.9
|
2019-04-06 06:09:21 +00:00
|
|
|
|
2020-05-25 22:44:25 +00:00
|
|
|
FROM ${REGISTRY_PREFIX}arm32v7/alpine:${DISTRIB_VERSION} as builder
|
2019-04-06 06:09:21 +00:00
|
|
|
|
2019-12-01 18:01:40 +00:00
|
|
|
ARG QEMU_VERSION_=v4.1.0-1
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
COPY docker/qemu-arm-static-$QEMU_VERSION_ /usr/bin/qemu-arm-static
|
|
|
|
|
|
|
|
RUN set -x \
|
2019-05-25 00:44:32 +00:00
|
|
|
&& apk add --no-cache \
|
|
|
|
bash \
|
|
|
|
coreutils \
|
|
|
|
gcc \
|
|
|
|
g++ \
|
|
|
|
make \
|
2020-06-07 14:21:15 +00:00
|
|
|
python3 \
|
|
|
|
py3-pip \
|
|
|
|
py3-setuptools \
|
|
|
|
py3-cryptography \
|
2019-04-06 06:09:21 +00:00
|
|
|
cmake \
|
2019-05-25 00:44:32 +00:00
|
|
|
ninja \
|
|
|
|
pkgconf \
|
2020-06-07 14:21:15 +00:00
|
|
|
tar \
|
2019-04-06 06:09:21 +00:00
|
|
|
gdb \
|
2020-06-07 14:21:15 +00:00
|
|
|
git \
|
|
|
|
ca-certificates \
|
|
|
|
openssl \
|
|
|
|
openssl-dev \
|
|
|
|
linux-headers \
|
|
|
|
&& pip3 install meson
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
COPY src /usr/local/src
|
|
|
|
|
|
|
|
ARG PARALLELMFLAGS=-j2
|
|
|
|
|
|
|
|
ARG DUMB_INIT_VERSION=1.2.2
|
|
|
|
|
|
|
|
RUN set -x \
|
2019-05-25 00:44:32 +00:00
|
|
|
&& builddeps="vim" \
|
|
|
|
&& apk add --no-cache --virtual .build-deps $builddeps \
|
2019-04-06 06:09:21 +00:00
|
|
|
&& builddir="/tmp/out" \
|
|
|
|
&& mkdir -p "$builddir" \
|
|
|
|
&& cd "$builddir" \
|
|
|
|
&& cp -R "/usr/local/src/dumb-init-$DUMB_INIT_VERSION" . \
|
|
|
|
&& cd "dumb-init-$DUMB_INIT_VERSION" \
|
|
|
|
&& make "$PARALLELMFLAGS" \
|
|
|
|
&& chmod +x dumb-init \
|
|
|
|
&& mv dumb-init /usr/local/bin/dumb-init \
|
|
|
|
&& dumb-init --version \
|
|
|
|
&& rm -rf "$builddir" \
|
2019-05-25 00:44:32 +00:00
|
|
|
&& apk del .build-deps
|
2019-04-06 06:09:21 +00:00
|
|
|
|
2020-06-15 16:26:31 +00:00
|
|
|
ARG FUSE_VERSION=3.9.2
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
2020-06-07 14:21:15 +00:00
|
|
|
&& builddeps="eudev-dev" \
|
2019-05-25 00:44:32 +00:00
|
|
|
&& apk add --no-cache --virtual .build-deps $builddeps \
|
2019-04-06 06:09:21 +00:00
|
|
|
&& builddir="/tmp/out" \
|
|
|
|
&& mkdir -p "$builddir" \
|
2020-06-07 14:21:15 +00:00
|
|
|
&& meson -Dexamples=false "$builddir" "/usr/local/src/libfuse-fuse-$FUSE_VERSION" \
|
|
|
|
&& ninja "$PARALLELMFLAGS" -C "$builddir" install \
|
2019-04-06 06:09:21 +00:00
|
|
|
&& rm -rf "$builddir" \
|
2019-05-25 00:44:32 +00:00
|
|
|
&& apk del .build-deps
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
2019-05-25 00:44:32 +00:00
|
|
|
ENV PKG_CONFIG_PATH=/usr/local/lib32/pkgconfig
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
ARG USERID=1000
|
|
|
|
|
|
|
|
RUN set -x \
|
2020-05-25 22:44:25 +00:00
|
|
|
&& adduser -u "$USERID" -s /bin/bash -D user
|
2019-04-06 06:09:21 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["dumb-init", "--"]
|
2020-05-25 22:44:25 +00:00
|
|
|
CMD [ "/bin/bash" ]
|