撤销Docker安装字体

This commit is contained in:
马梓彭 2026-03-14 07:23:04 +08:00
parent c6a221dd3a
commit 1f4b535c0d
5 changed files with 4 additions and 29 deletions

View File

@ -7,18 +7,6 @@ EXPOSE 9996
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 安装字体和依赖
RUN apt-get update && apt-get install -y \
fonts-liberation \
fonts-dejavu-core \
fonts-wqy-zenhei \
fontconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 重建字体缓存
RUN fc-cache -fv
# ¹¹½¨½×¶Î
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release

View File

@ -14,8 +14,6 @@ namespace YD_Event.Application.Client;
/// 小程序-赛事接口
/// </summary>
[ApiDescriptionSettings("微信小程序接口")]
[Route("api/v1/mini-program/event")]
[Authorize(AuthenticationSchemes = "Bearer")]
public class EventClientController : IDynamicApiController
{
private readonly ISqlSugarRepository<EventInfo> _eventRepository;

View File

@ -14,8 +14,6 @@ namespace YD_Event.Application.Client;
/// 小程序-个人中心接口
/// </summary>
[ApiDescriptionSettings("微信小程序接口")]
[Route("api/v1/mini-program/my")]
[Authorize(AuthenticationSchemes = "Bearer")]
public class MyController : IDynamicApiController
{
private readonly ISqlSugarRepository<YD_Event.Core.Entities.AppUser> _appUserRepository;

View File

@ -15,7 +15,6 @@ namespace YD_Event.Application.Client;
/// 微信小程序认证接口
/// </summary>
[ApiDescriptionSettings("微信小程序接口")]
[Route("api/v1/mini-program/auth")]
public class OAuthController : IDynamicApiController
{
private readonly WeChatTool _weChatTool;

View File

@ -6,18 +6,10 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
#修改apt-get源,加速apt下载
RUN sed -i s@/deb.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list.d/debian.sources
#RUN cat /etc/apt/sources.list
# 安装字体和依赖
RUN apt-get update && apt-get install -y \
fonts-liberation \
fonts-dejavu-core \
fonts-wqy-zenhei \
fontconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 重建字体缓存
RUN fc-cache -fv
#安装fontconfig
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y fontconfig
USER $APP_UID
WORKDIR /app