-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (40 loc) · 1.92 KB
/
Copy pathDockerfile
File metadata and controls
53 lines (40 loc) · 1.92 KB
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
50
51
52
53
FROM myoung34/github-runner:ubuntu-noble
ARG DOCKERFILE_HASH
ARG CONTAINER_REGISTRY_SOURCE_LABEL
LABEL nano.dockerfile-hash="${DOCKERFILE_HASH}"
LABEL org.opencontainers.image.source="${CONTAINER_REGISTRY_SOURCE_LABEL}"
USER root
RUN apt-get update && apt-get install -y \
curl wget ca-certificates gnupg lsb-release unzip \
software-properties-common apt-transport-https && \
rm -rf /var/lib/apt/lists/*
# Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# kubectl
RUN curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl
# Helm
RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# .NET 10 SDK
RUN curl -sSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh && \
chmod +x dotnet-install.sh && \
./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet && \
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet && \
rm dotnet-install.sh
# EF Core tools
RUN dotnet tool install dotnet-ef --version 10.* --tool-path /opt/ef-tools/10.0
# MySQL client
RUN apt-get update && apt-get install -y mysql-client && rm -rf /var/lib/apt/lists/*
# PostgreSQL client
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
# SQL Server tools
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \
install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/ && \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/24.04/prod noble main" \
> /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 unixodbc-dev && \
rm -rf /var/lib/apt/lists/*
ENV PATH="${PATH}:/opt/mssql-tools18/bin"
USER runner