File tree 1 file changed +12
-12
lines changed
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
3
2
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'
6
12
7
13
# Add Microsoft package repository and install Azure Functions Core Tools
8
14
RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg \
9
15
&& wget -qO- https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/microsoft-prod.list \
10
16
&& apt-get update \
11
17
&& apt-get install -y azure-functions-core-tools-4
12
18
13
- # Set the working directory
14
- WORKDIR /workspace
15
-
16
-
17
- # Copy the project files
18
- COPY . .
19
+ RUN apt-get update
19
20
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