fix: Dockerfile image
This commit is contained in:
parent
b04254a09c
commit
c1c1297436
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base
|
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:7.0.400 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["Server/Server.csproj", "Server/"]
|
COPY ["Server/Server.csproj", "Server/"]
|
||||||
RUN dotnet restore "Server/Server.csproj"
|
RUN dotnet restore "Server/Server.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/Serer"
|
WORKDIR "/src/Server"
|
||||||
RUN dotnet build "Server.csproj" -c Release -o /app/build
|
RUN dotnet build "Server.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
|
|
Loading…
Reference in a new issue