Corrected project name
Replaced "Sinky" with "Leaky" in the backend
This commit is contained in:
parent
fe945a3e06
commit
cf92993e8a
18 changed files with 38 additions and 38 deletions
20
backend/LeakyShipsAPI/Dockerfile
Normal file
20
backend/LeakyShipsAPI/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["LeakyShipsAPI/LeakyShipsAPI.csproj", "LeakyShipsAPI/"]
|
||||
RUN dotnet restore "LeakyShipsAPI/LeakyShipsAPI.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/LeakyShipsAPI"
|
||||
RUN dotnet build "LeakyShipsAPI.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "LeakyShipsAPI.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "LeakyShipsAPI.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue