mirror of
https://github.com/helje5/dockSwiftOnARM.git
synced 2025-11-01 06:33:34 +00:00
28f1e65542
Use the @futurejones package for ARM 64bit image of Swift 4.2.0.
43 lines
1.2 KiB
Docker
43 lines
1.2 KiB
Docker
# Dockerfile
|
|
#
|
|
# docker build -t helje5/arm64v8-swift:4.2.0 \
|
|
# -f arm64v8-4.2.0-futurejones/arm64v8-ubuntu-swift-4.2.0.dockerfile \
|
|
# ./empty-ctx
|
|
# docker run -i --tty --rm helje5/arm64v8-swift:4.2.0
|
|
#
|
|
FROM arm64v8/ubuntu:18.04
|
|
|
|
LABEL maintainer "Helge Heß <me@helgehess.eu>"
|
|
|
|
ARG SWIFTPKG=https://packagecloud.io/swift-arm/release/packages/ubuntu/bionic/swift4_4.2_arm64.deb
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
|
|
# Funny: libcurl3 provies libcurl.so.4 :-)
|
|
# Maybe libpython3.5 makes libpython2.7 obsolete?
|
|
RUN apt-get install -y \
|
|
git \
|
|
libedit2 \
|
|
libpython2.7 libcurl4 libxml2 libicu60 \
|
|
libc6-dev \
|
|
libatomic1 \
|
|
libpython3.5 \
|
|
curl
|
|
|
|
RUN bash -c "curl -s https://packagecloud.io/install/repositories/swift-arm/release/script.deb.sh | bash"
|
|
|
|
RUN apt-get install -y swift4=4.2
|
|
|
|
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
|