-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile.ubuntu
49 lines (32 loc) · 1.34 KB
/
Dockerfile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:24.10
ARG RUNNERREPO="https://github.com/actions/runner" RUNNERPATCH SDK_VERSION ARCH
ENV DEBIAN_FRONTEND=noninteractive
COPY build-files/99synaptics /etc/apt/apt.conf.d/
COPY build-files/01-nodoc /etc/dpkg/dpkg.cfg.d/
RUN apt-get -qq update -y && \
apt-get -qq -y install wget git sudo curl dotnet-sdk-8.0 && \
apt autoclean
RUN echo "Using SDK - `dotnet --version`"
ADD ${RUNNERPATCH} /tmp/runner.patch
RUN cd /tmp && \
git clone -q ${RUNNERREPO} && \
cd runner && \
git checkout main -b build && \
git apply /tmp/runner.patch && \
sed -i'' -e /version/s/8......\"$/${SDK}.0.100\"/ src/global.json
RUN cd /tmp/runner/src && \
./dev.sh layout && \
./dev.sh package && \
./dev.sh test && \
rm -rf /root/.dotnet /root/.nuget
RUN usermod -L ubuntu && \
echo "ubuntu ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/ubuntu
RUN mkdir -p /opt/runner && \
tar -xf /tmp/runner/_package/*.tar.gz -C /opt/runner && \
chown -R ubuntu:ubuntu /opt/runner && \
su -c "/opt/runner/config.sh --version" ubuntu
RUN apt-get -qq -y install cmake make automake autoconf m4 gcc-12-base libtool
RUN rm -rf /tmp/runner /tmp/runner.patch
USER ubuntu
EXPOSE 443
CMD /bin/bash