From 42743979cba48c2f199d958fb096bfbe9267a1d2 Mon Sep 17 00:00:00 2001 From: Helge Hess Date: Thu, 11 May 2017 17:14:16 +0200 Subject: [PATCH] Proper shared library setup --- rpi-swift-3.1.1-ctx/rpi-ubuntu-swift-3.1.1.dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rpi-swift-3.1.1-ctx/rpi-ubuntu-swift-3.1.1.dockerfile b/rpi-swift-3.1.1-ctx/rpi-ubuntu-swift-3.1.1.dockerfile index 0738bb6..0a428a7 100644 --- a/rpi-swift-3.1.1-ctx/rpi-ubuntu-swift-3.1.1.dockerfile +++ b/rpi-swift-3.1.1-ctx/rpi-ubuntu-swift-3.1.1.dockerfile @@ -1,10 +1,11 @@ # Dockerfile # -# docker run --privileged=true -i --tty --rm helje5/rpi-swift:3.1.0 +# docker run -i --tty --rm helje5/rpi-swift:3.1.1 # - FROM ioft/armhf-ubuntu:16.04 +LABEL maintainer "Helge Heß " + ARG TARBALL=swift-3.1.1-armv7l-ubuntu-16.04.tar.gz ENV DEBIAN_FRONTEND noninteractive @@ -20,7 +21,13 @@ RUN apt-get install -y \ ADD $TARBALL /usr/ +RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\ + echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\ + echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\ + ldconfig" + RUN useradd --create-home --shell /bin/bash swift USER swift WORKDIR /home/swift +