diff --git a/docker/Dockerfile b/docker/Dockerfile index dad09181..ac809bed 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,35 +1,35 @@ -FROM debian:trixie-slim +FROM alpine +RUN \ + apk update && apk upgrade && \ + apk add --no-cache curl -ARG DEBIAN_FRONTEND=noninteractive -ENV DEBIAN_FRONTEND=$DEBIAN_FRONTEND +# [SR-4632] Swift on Alpine Linux (support musl libc) +# https://github.com/swiftlang/swift/issues/47209 +# Swift on Alpine not yet supported +# +# RUN curl -s https://archive.swiftlang.xyz/install.sh | bash && \ RUN \ - apt update && apt upgrade -y && \ - apt install -y curl && \ - curl -s https://archive.swiftlang.xyz/install.sh | bash && \ - apt install -y \ - build-essential \ + apk add --no-cache \ + bash \ ca-certificates \ - clang-19 \ + clang \ cmake \ - freeglut3-dev \ + curl-dev \ + freeglut-dev \ git \ - libcurl4-openssl-dev \ - libpango1.0-dev \ libpng-dev \ - libsqlite3-0 \ - libsqlitecpp-dev \ - libtcc-dev \ lsb-release \ meson \ - pkg-config \ + pango-dev \ + pkgconf \ + shadow # For useradd \ sudo \ - swiftlang \ unzip \ wget RUN useradd -m builder -s /bin/bash && passwd -d builder -RUN echo "builder ALL=(ALL) ALL" >> /etc/sudoers +RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers WORKDIR /home/builder USER builder