Files
vscode/test/sanity/containers/ubuntu.dockerfile
Dmitriy Vasyura aaaac22b3c Sanity tests for Linux (#290072)
Added Linux containers for supported platforms.
Updated tests to run and pass on all targets.
2026-01-23 18:49:15 -08:00

35 lines
881 B
Docker

ARG BASE_IMAGE=ubuntu:22.04
FROM ${BASE_IMAGE}
# Utilities
RUN apt-get update && \
apt-get install -y curl
# Node.js 22
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs
# No UI on arm32 on Ubuntu 24.04
ARG BASE_IMAGE
ARG TARGETARCH
RUN if [ "$TARGETARCH" != "arm" ] || [ "$BASE_IMAGE" != "ubuntu:24.04" ]; then \
# X11 Server \
apt-get install -y xvfb && \
# Desktop Bus \
apt-get install -y dbus-x11 && \
mkdir -p /run/dbus; \
fi
# VS Code dependencies
RUN apt-get install -y libasound2 || apt-get install -y libasound2t64 && \
apt-get install -y libgtk-3-0 || apt-get install -y libgtk-3-0t64 && \
apt-get install -y libcurl4 || apt-get install -y libcurl4t64 && \
apt-get install -y \
libgbm1 \
libnss3 \
xdg-utils
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]