mirror of
https://github.com/helje5/dockSwiftOnARM.git
synced 2025-11-01 06:33:34 +00:00
53c6b46aa9
arm64, seems to work fine on M1.
38 lines
974 B
Docker
38 lines
974 B
Docker
# Dockerfile
|
|
#
|
|
FROM arm64v8/ubuntu:18.04
|
|
|
|
LABEL maintainer "Helge Heß <me@helgehess.eu>"
|
|
|
|
ARG TARBALL=swiftlang-5.3.2-ubuntu-18.04-release-aarch64-3-2021-01-03.tar.gz
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
|
|
# Maybe libpython3.5 makes libpython2.7 obsolete?
|
|
RUN apt-get install -y \
|
|
git \
|
|
libedit2 \
|
|
libpython2.7 libcurl4 libxml2 \
|
|
libc6-dev \
|
|
libatomic1 \
|
|
libpython3.5 \
|
|
curl
|
|
# curl seems necessary to grab the right lib, didn't research which one
|
|
# it is :-) /usr/lib/aarch64-linux-gnu/libcurl-* looks the same!
|
|
|
|
# tarball starts at /
|
|
ADD $TARBALL /
|
|
|
|
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 -u 501 --create-home --shell /bin/bash swift
|
|
|
|
USER swift
|
|
WORKDIR /home/swift
|