mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user