代码拉取完成,页面将自动刷新
FROM microsoft/dotnet:2.1.401-sdk-alpine3.7 AS build
WORKDIR /app
COPY ./*.sln ./NuGet.Config ./
COPY ./build/*.props ./build/
# Copy the main source project files
COPY src/*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p src/${file%.*}/ && mv $file src/${file%.*}/; done
# Copy the individual jobs (temporary)
COPY src/Jobs/*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p src/Jobs/${file%.*}/ && mv $file src/Jobs/${file%.*}/; done
# Copy the test project files
COPY tests/*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p tests/${file%.*}/ && mv $file tests/${file%.*}/; done
RUN dotnet restore
# Copy everything else and build app
COPY . .
RUN dotnet build
# testrunner
FROM build AS testrunner
WORKDIR /app/tests/Exceptionless.Tests
# TODO: Switch to using xunit runner with junit export format once xunit 2.4 comes out
ENTRYPOINT [ "dotnet", "test", "--verbosity", "minimal", "--logger:trx" ]
# job-publish
FROM build AS job-publish
WORKDIR /app/src/Exceptionless.Job
RUN dotnet publish -c Release -o out
# job
FROM microsoft/dotnet:2.1.3-runtime-alpine3.7 AS job
WORKDIR /app
COPY --from=job-publish /app/src/Exceptionless.Job/out ./
ENTRYPOINT [ "dotnet", "Exceptionless.Job.dll" ]
# api-publish
FROM build AS api-publish
WORKDIR /app/src/Exceptionless.Web
RUN dotnet publish -c Release -o out
# api
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime-alpine3.7 AS api
WORKDIR /app
COPY --from=api-publish /app/src/Exceptionless.Web/out ./
ENTRYPOINT [ "dotnet", "Exceptionless.Web.dll" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。