6.0-sdk-bullseye-integration
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim
# Configure web servers to bind to port 80 when present
ENV ASPNETCORE_URLS=http://+:80 \
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true
RUN dotnet tool install -g dotnet-dump
RUN dotnet tool install -g dotnet-counters
RUN dotnet tool install -g dotnet-trace
ENV PATH $PATH:/root/.dotnet/tools
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && \
sed -i "s@http://security.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && \
apt-get update
RUN apt-get install -y --allow-unauthenticated \
apt-utils libgdiplus nano libc6-dev libx11-dev && \
ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
RUN apt-get install -y --allow-unauthenticated procps
RUN rm -rf /var/lib/apt/lists/*
ENV COMPlus_ThreadPool_ForceMinWorkerThreads=50
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime