FROM daocloud.io/library/ubuntu:20.04
LABEL Author="" \
Mail="@example。com" \
OS=ubuntu-20.04 \
version=aspnetcore-runtime-6.0 \
Dumb-init=1.2.2
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
dumb-init \
wget \
supervisor \
libgdiplus \
libc6-dev \
gpg \
ca-certificates && \
wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg && \
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \
wget https://packages.microsoft.com/config/ubuntu/20.04/prod.list && \
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list && \
apt-get update && \
apt-get install -y apt-transport-https && \
apt-get install -y aspnetcore-runtime-6.0
COPY ./Fonts/ /usr/share/fonts/
WORKDIR /var/www
ENTRYPOINT ["dumb-init", "--"]
基于ubuntu20.04的.net运行环境的aspnetcore-runtime-6.0基础镜像
于 2022-03-10 11:39:34 首次发布