devcontainer: Use copy instead of mount for package list (#42223)

Selinux enabled systems have stricter permissions and a bind mount might
not work correctly. Hence, we copy the package list.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing: Build the devcontainer on fedora machine.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger
2026-01-29 11:49:32 +01:00
committed by GitHub
parent 3ecde12e81
commit f250e706b2

View File

@@ -9,8 +9,8 @@ FROM ghcr.io/astral-sh/uv:latest AS uv
FROM ubuntu:24.04 AS base
# Install apt dependencies.
RUN --mount=type=bind,source=python/servo/platform/linux_packages,target=/tmp/linux_packages,readonly \
apt-get update \
COPY python/servo/platform/linux_packages /tmp/linux_packages
RUN apt-get update \
&& /tmp/linux_packages/generate_pkg_list.sh /tmp/linux_packages/apt/* | xargs apt-get install -y --no-install-recommends \
&& curl --version
@@ -45,4 +45,4 @@ COPY --from=rust_builder \
/usr/local/cargo/bin/taplo \
/usr/local/cargo/bin/cargo-about \
/usr/local/cargo/bin/
COPY --from=uv /uv /uvx /bin/
COPY --from=uv /uv /uvx /bin/