CompetitionAPI_dotnet/CompetitionAPI/Dockerfile

15 lines
487 B
Docker

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
WORKDIR /app
EXPOSE 5000
COPY ./ ./
RUN apt-get update && apt-get upgrade -y fontconfig && apt-get install -y fontconfig
COPY ./msyh.ttc /usr/share/fonts/
ENTRYPOINT ["dotnet", "CompetitionAPI.dll"]