chore: use correct project name in Dockerfile
This commit is contained in:
parent
617f58afad
commit
aca79b0e69
10
Dockerfile
10
Dockerfile
@ -5,16 +5,16 @@ EXPOSE 443
|
|||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["oliverbooth.dev/oliverbooth.dev.csproj", "oliverbooth.dev/"]
|
COPY ["OliverBooth/OliverBooth.csproj", "OliverBooth/"]
|
||||||
RUN dotnet restore "oliverbooth.dev/oliverbooth.dev.csproj"
|
RUN dotnet restore "oliverbooth.dev/oliverbooth.dev.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/oliverbooth.dev"
|
WORKDIR "/src/OliverBooth"
|
||||||
RUN dotnet build "oliverbooth.dev.csproj" -c Release -o /app/build
|
RUN dotnet build "OliverBooth.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "oliverbooth.dev.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "OliverBooth.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
ENTRYPOINT ["dotnet", "oliverbooth.dev.dll"]
|
ENTRYPOINT ["dotnet", "OliverBooth.dll"]
|
||||||
|
Loading…
Reference in New Issue
Block a user