This commit is contained in:
杨毅 2024-10-02 14:55:10 +08:00
parent 4c94612c80
commit 89b63cede6

View File

@ -12,8 +12,8 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["/asg_form.csproj", "/"]
RUN dotnet restore "./asg_form.csproj"
COPY ["/root/asg1/asg_backend/asg_form/asg_form.csproj", "/"]
RUN dotnet restore "./root/asg1/asg_backend/asg_form/asg_form.csproj"
COPY . .
WORKDIR "/root/asg1/asg_backend/asg_form"
RUN dotnet build "./root/asg1/asg_backend/asg_form/asg_form.csproj" -c $BUILD_CONFIGURATION -o /app/build