bug
This commit is contained in:
parent
d33037e868
commit
4c94612c80
@ -16,12 +16,12 @@ COPY ["/asg_form.csproj", "/"]
|
|||||||
RUN dotnet restore "./asg_form.csproj"
|
RUN dotnet restore "./asg_form.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/root/asg1/asg_backend/asg_form"
|
WORKDIR "/root/asg1/asg_backend/asg_form"
|
||||||
RUN dotnet build "./asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "./root/asg1/asg_backend/asg_form/asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|
||||||
# 此阶段用于发布要复制到最终阶段的服务项目
|
# 此阶段用于发布要复制到最终阶段的服务项目
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
RUN dotnet publish "./asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "./root/asg1/asg_backend/asg_form/asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# 此阶段在生产中使用,或在常规模式下从 VS 运行时使用(在不使用调试配置时为默认值)
|
# 此阶段在生产中使用,或在常规模式下从 VS 运行时使用(在不使用调试配置时为默认值)
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
|
Loading…
x
Reference in New Issue
Block a user