1 Star 0 Fork 2

伯亚/RuoVea.QuartzNet.Dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
伯亚 提交于 2023-12-09 00:05 . 增加 Docker 支持
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
#For more information, please see https://aka.ms/containercompat
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["QuartzNetDashboard/QuartzNetDashboard.csproj", "QuartzNetDashboard/"]
RUN dotnet restore "./QuartzNetDashboard/./QuartzNetDashboard.csproj"
COPY . .
WORKDIR "/src/QuartzNetDashboard"
RUN dotnet build "./QuartzNetDashboard.csproj" -c %BUILD_CONFIGURATION% -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./QuartzNetDashboard.csproj" -c %BUILD_CONFIGURATION% -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "QuartzNetDashboard.dll"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/starry123/ruovea-quartznetui-dashboard.git
git@gitee.com:starry123/ruovea-quartznetui-dashboard.git
starry123
ruovea-quartznetui-dashboard
RuoVea.QuartzNet.Dashboard
master

搜索帮助