Proper shared library setup

This commit is contained in:
Helge Hess
2017-05-11 17:14:16 +02:00
parent d74ce8f360
commit 42743979cb
@@ -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ß <me@helgehess.eu>"
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