Some checks failed
Build and Push Docker Image / build (push) Failing after 1m45s
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
FROM docker.io/gitea/act_runner:latest
|
||
|
||
# Switch to root to install packages
|
||
USER root
|
||
|
||
# Update Alpine packages and install prerequisites
|
||
RUN apk update && apk add --no-cache \
|
||
wget \
|
||
curl \
|
||
bash \
|
||
icu-libs \
|
||
ca-certificates \
|
||
&& rm -rf /var/cache/apk/*
|
||
|
||
# Add Microsoft package repository and install .NET SDK
|
||
# Microsoft doesn’t publish Alpine .NET SDK packages in apt repos,
|
||
# so you need to install the official tarball instead
|
||
# https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-10.0.102-linux-x64-binaries
|
||
RUN wget https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.102/dotnet-sdk-10.0.102-linux-x64.tar.gz \
|
||
|
||
-O dotnet-sdk.tar.gz \
|
||
&& mkdir -p /usr/share/dotnet \
|
||
&& tar -zxf dotnet-sdk.tar.gz -C /usr/share/dotnet \
|
||
&& rm dotnet-sdk.tar.gz
|
||
# Install Node.js (LTS version) using apk
|
||
|
||
# Lets install node
|
||
RUN apk add --no-cache nodejs npm
|
||
|
||
# Set environment variables for .NET before verifying installation
|
||
ENV DOTNET_ROOT=/usr/share/dotnet
|
||
ENV PATH=$PATH:/usr/share/dotnet
|
||
|
||
# Verify .NET installation
|
||
RUN dotnet --version
|
||
|
||
# Check what user the base image uses
|
||
RUN id |