File tree Expand file tree Collapse file tree
Web Assembly/WasmStandalone
WebApps Server/WebAppServerNet10
WebApps Wasm/WebAppWASMNet10/WebAppWASMNet10 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22
33FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
4- RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so
5-
64# install System.Drawing native dependencies
75
86RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev
@@ -14,20 +12,19 @@ EXPOSE 443
1412
1513FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
1614# # Install Python required for WASM tools
17- # RUN apt-get update && apt-get install -y \
18- # python3 \
19- # python3-pip \
20- # python3-venv \
21- # && ln -s /usr/bin/python3 /usr/bin/python || true
15+ RUN apt-get update && apt-get install -y \
16+ python3 \
17+ python3-pip \
18+ python3-venv \
19+ && ln -s /usr/bin/python3 /usr/bin/python || true
2220# # Install WASM tools
23- # RUN dotnet workload install wasm-tools
21+ RUN dotnet workload install wasm-tools
2422WORKDIR /src
2523COPY ["NuGet.Config" ,"/src/" ]
2624COPY ["package" , "/src/package" ]
2725
2826RUN dotnet nuget add source package
2927COPY ["WasmStandalone.csproj" , "." ]
30- RUN dotnet workload install wasm-tools
3128RUN apt-get update && apt-get install -y emscripten
3229RUN dotnet restore "WasmStandalone.csproj" --configfile "NuGet.Config"
3330COPY . .
Original file line number Diff line number Diff line change 22
33# This stage is used when running from VS in fast mode (Default for Debug configuration)
44FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
5-
6- RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so
75# install System.Drawing native dependencies
86RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev
97RUN ln -s libgdiplus.so gdiplus.dll
Original file line number Diff line number Diff line change 22
33# This stage is used when running from VS in fast mode (Default for Debug configuration)
44FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
5-
6- RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so
75# install System.Drawing native dependencies
86RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev
97RUN ln -s libgdiplus.so gdiplus.dll
You can’t perform that action at this time.
0 commit comments