Skip to content

Commit f882956

Browse files
authored
Merge pull request #40 from markjbrown/mjb-updates
update docker with new .net 8
2 parents 6ca4f4d + ed51dc2 commit f882956

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.devcontainer/Dockerfile

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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
814
RUN 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

0 commit comments

Comments
 (0)