Skip to content

Commit 0246d26

Browse files
authored
Adding the base image for AmazonLinux 2023 (#427)
Adding a base image for building Swift for AmazonLinux 2023. This installs the minimally required dependencies for building the compiler and runtime libraries.
1 parent 1d8396a commit 0246d26

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
FROM amazonlinux:2023
2+
3+
RUN yum install shadow-utils -y
4+
5+
RUN groupadd -g 998 build-user && \
6+
useradd -m -r -u 42 -g build-user build-user
7+
8+
RUN yum -y group install "development tools"
9+
RUN yum -y install \
10+
cmake \
11+
ninja-build \
12+
curl-devel \
13+
gcc-c++ \
14+
clang \
15+
git \
16+
libbsd-devel \
17+
libedit-devel \
18+
libicu-devel \
19+
libuuid-devel \
20+
libxml2-devel \
21+
ncurses-devel \
22+
pkgconfig \
23+
procps-ng \
24+
python3 \
25+
python3-devel \
26+
python3-distro \
27+
python3-setuptools \
28+
rsync \
29+
sqlite-devel \
30+
swig \
31+
tzdata \
32+
unzip \
33+
zip \
34+
lld \
35+
diffutils
36+
37+
38+
# TODO: Still need to install bits for lldb
39+
40+
USER build-user
41+
WORKDIR /home/build-user

0 commit comments

Comments
 (0)