File tree Expand file tree Collapse file tree 2 files changed +56
-1
lines changed
Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ jobs:
101101 strategy :
102102 fail-fast : false
103103 matrix :
104- arch : [alpine-arm64, alpine-x64, snapcraft -x64]
104+ arch : [alpine-arm64, alpine-x64, ubuntu -x64]
105105 include :
106106 - arch : alpine-arm64
107107 qemu : true
Original file line number Diff line number Diff line change 1+ ARG REPO=ubuntu
2+ ARG TAG=20.04
3+ FROM ${REPO}:${TAG}
4+
5+ # Install build dependencies for VS Code
6+ ENV DEBIAN_FRONTEND=noninteractive
7+
8+ # Install curl and Node.js 18.x from NodeSource
9+ RUN apt-get update && apt-get install -y curl ca-certificates \
10+ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
11+ && apt-get install -y nodejs \
12+ && rm -rf /var/lib/apt/lists/*
13+
14+ # Install Python 3.11 from deadsnakes PPA
15+ RUN apt-get update && apt-get install -y software-properties-common \
16+ && add-apt-repository ppa:deadsnakes/ppa \
17+ && apt-get update && apt-get install -y \
18+ python3.11 \
19+ python3.11-dev \
20+ && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 60 \
21+ && rm -rf /var/lib/apt/lists/*
22+
23+ # Install GCC 10 and other dependencies
24+ RUN apt-get update && apt-get install -y \
25+ gcc-10 \
26+ g++-10 \
27+ make \
28+ git \
29+ bash \
30+ perl \
31+ pkg-config \
32+ libsecret-1-dev \
33+ libkrb5-dev \
34+ xvfb \
35+ libx11-dev \
36+ libxkbfile-dev \
37+ libgtk-3-dev \
38+ libnss3-dev \
39+ libasound2-dev \
40+ tzdata \
41+ && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 \
42+ && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 60 \
43+ && rm -rf /var/lib/apt/lists/*
44+
45+ # Set up environment for GitHub Actions (root user required)
46+ ENV DISPLAY=:99
47+ ENV TEMP=/tmp
48+ RUN chmod a+rwx /tmp
49+
50+ # Create working directory
51+ RUN mkdir -p /root/vscode
52+ WORKDIR /root/vscode
53+
54+ # GitHub Actions compatibility - ensure running as root
55+ # No USER directive needed as container runs as root by default
You can’t perform that action at this time.
0 commit comments