remove build dependencies during build (alpine)

pull/2/head
Falk Werner 5 years ago
parent cc22bb6756
commit 1e57523ef7

@ -50,16 +50,12 @@ RUN set -x \
&& make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir"
RUN set -x \
&& builddeps="linux-headers udev eudev-dev python3 py3-pip py3-setuptools py3-cryptography ninja" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& pip3 install meson
ARG FUSE_VERSION=3.8.0
RUN set -x \
&& builddeps="libtool automake autoconf gettext-dev m4" \
&& builddeps="linux-headers eudev-dev python3 py3-pip py3-setuptools py3-cryptography" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& pip3 install meson \
&& builddir="/tmp/out" \
&& mkdir -p "$builddir" \
&& cd "$builddir" \
@ -67,6 +63,7 @@ RUN set -x \
&& meson configure -Dexamples=false \
&& ninja \
&& ninja install \
&& pip3 uninstall -y meson \
&& rm -rf "$builddir" \
&& apk del .build-deps

@ -54,22 +54,20 @@ RUN set -x \
&& make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir"
RUN set -x \
&& builddeps="linux-headers udev eudev-dev python3 py3-pip py3-setuptools py3-cryptography ninja" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& pip3 install meson
ARG FUSE_VERSION=3.8.0
RUN set -x \
&& builddeps="libtool automake autoconf gettext-dev m4" \
&& builddeps="linux-headers eudev-dev python3 py3-pip py3-setuptools py3-cryptography" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& pip3 install meson \
&& builddir="/tmp/out" \
&& mkdir -p "$builddir" \
&& cd "$builddir" \
&& meson "/usr/local/src/libfuse-fuse-$FUSE_VERSION" \
&& meson configure -Dexamples=false \
&& ninja \
&& ninja install \
&& pip3 uninstall -y meson \
&& rm -rf "$builddir" \
&& apk del .build-deps

Loading…
Cancel
Save