File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- # Use the official .NET 8 SDK image as a base
2- FROM mcr.microsoft.com/dotnet/sdk:8.0
1+ FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
32
4- # Install dependencies
5- RUN apt-get update && apt-get install -y wget apt-transport-https
3+ RUN apt-get update
4+
5+ RUN apt-get install --yes curl gnupg lsb-release apt-utils
6+
7+ RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
8+
9+ RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
10+
11+ RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs 2>/dev/null | cut -d' .' -f 1)/prod $(lsb_release -cs 2>/dev/null) main" > /etc/apt/sources.list.d/dotnetdev.list'
612
713# Add Microsoft package repository and install Azure Functions Core Tools
814RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg \
915 && wget -qO- https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/microsoft-prod.list \
1016 && apt-get update \
1117 && apt-get install -y azure-functions-core-tools-4
1218
13- # Set the working directory
14- WORKDIR /workspace
15-
16-
17- # Copy the project files
18- COPY . .
19+ RUN apt-get update
1920
20- # Restore the project dependencies
21- RUN dotnet restore
21+ RUN apt-get install --yes azure-functions-core-tools-4
You can’t perform that action at this time.
0 commit comments