1 Star 0 Fork 0

XCool/mioio_api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 790 Bytes
一键复制 编辑 原始数据 按行查看 历史
XCool 提交于 2024-08-12 08:59 . 添加项目文件。
#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.
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["MinioAPI.csproj", "."]
RUN dotnet restore "./MinioAPI.csproj"
COPY . .
WORKDIR "/src/."
RUN dotnet build "./MinioAPI.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./MinioAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "MinioAPI.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/min_XCool/mioio_api.git
git@gitee.com:min_XCool/mioio_api.git
min_XCool
mioio_api
mioio_api
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385