mirror of
https://github.com/helje5/dockSwiftOnARM.git
synced 2025-11-01 06:33:34 +00:00
Proper shared library setup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user