Commit beef6b9e authored by J. Hogeveen's avatar J. Hogeveen Committed by Jeroen Hogeveen

Add .net sdk 3.1 image with az cli and function tools 3.0.2358

parents
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
MAINTAINER Bizzscore <support@bizzscore.com>
ARG AZCLI_VERSION=2.5.1-1
ARG FUNCTIONS_VERSION=3.0.2358
ENV AZURE_CORE_COLLECT_TELEMETRY=0 FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT=1 DOTNET_CLI_TELEMETRY_OPTOUT=1 POWERSHELL_TELEMETRY_OPTOUT=1
RUN wget -nc -P /tmp/msft/pkg "https://packages.microsoft.com/repos/azure-cli/pool/main/a/azure-cli/azure-cli_$AZCLI_VERSION~buster_all.deb" && \
wget -nc -P /tmp/msft/pkg "https://github.com/Azure/azure-functions-core-tools/releases/download/$FUNCTIONS_VERSION/Azure.Functions.Cli.linux-x64.$FUNCTIONS_VERSION.zip" && \
wget -nc -P /tmp/buster/pkg "http://ftp.debian.org/debian/pool/main/u/unzip/unzip_6.0-23+deb10u1_amd64.deb" && \
dpkg -i /tmp/buster/pkg/unzip_6.0-23+deb10u1_amd64.deb && \
rm -rf /tmp/buster && \
mkdir -p /opt/msft/functions-core-tools && \
cd /opt/msft/functions-core-tools && \
unzip "/tmp/msft/pkg/Azure.Functions.Cli.linux-x64.$FUNCTIONS_VERSION.zip" && \
chmod 755 ./func && \
chmod 755 ./gozip && \
dpkg -i "/tmp/msft/pkg/azure-cli_$AZCLI_VERSION~buster_all.deb" && \
rm -rf /tmp/msft
# add function core tools to path
ENV PATH="$PATH:/opt/msft/functions-core-tools"
# add ci user
RUN groupadd -g 1000 ci \
&& useradd -m -d /home/ci -s /bin/bash -c "CI runner" -u 1000 -g 1000 ci \
&& mkdir -p /home/ci/src \
&& chown ci:ci /home/ci/src
# set the working directory to the ci its home directory
WORKDIR /home/ci/src
# user which should be used to execute all commands below
USER ci
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment