ThongCoding commited on
Commit
1e27db8
·
verified ·
1 Parent(s): 1b21c21

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -71,11 +71,18 @@ RUN curl -LO https://go.dev/dl/go1.23.0.linux-amd64.tar.gz \
71
  # Node.js + Java + .NET
72
  # -----------------------------
73
  RUN apt-fast update && apt-fast install -y openjdk-17-jdk
74
- RUN wget https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
75
- && dpkg -i packages-microsoft-prod.deb \
76
- && rm packages-microsoft-prod.deb \
77
- && apt-fast update \
78
- && apt-fast install -y dotnet-sdk-8.0
 
 
 
 
 
 
 
79
 
80
  # Yarn + Pnpm build tools
81
  RUN npm install -g yarn pnpm
 
71
  # Node.js + Java + .NET
72
  # -----------------------------
73
  RUN apt-fast update && apt-fast install -y openjdk-17-jdk
74
+
75
+ # Install Microsoft package signing key
76
+ RUN wget https://packages.microsoft.com/keys/microsoft.asc -O /tmp/microsoft.asc \
77
+ && gpg --dearmor /tmp/microsoft.asc \
78
+ > /usr/share/keyrings/microsoft.gpg
79
+
80
+ # Register the new APT v2 repository
81
+ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/24.04/prod noble main" \
82
+ > /etc/apt/sources.list.d/microsoft-prod.list
83
+
84
+ # Install .NET SDK
85
+ RUN apt-fast update && apt-fast install -y dotnet-sdk-8.0
86
 
87
  # Yarn + Pnpm build tools
88
  RUN npm install -g yarn pnpm