fix
Some checks failed
Add-in CI / Build and test Word add-in (push) Failing after 21s
Backend CI + Docker Deploy / Build and test backend (push) Failing after 37s
Web CI / Build and test web app (push) Failing after 5s
Backend CI + Docker Deploy / Build and push backend image (push) Has been skipped
Backend CI + Docker Deploy / Deploy backend container (push) Has been skipped
Some checks failed
Add-in CI / Build and test Word add-in (push) Failing after 21s
Backend CI + Docker Deploy / Build and test backend (push) Failing after 37s
Web CI / Build and test web app (push) Failing after 5s
Backend CI + Docker Deploy / Build and push backend image (push) Has been skipped
Backend CI + Docker Deploy / Deploy backend container (push) Has been skipped
This commit is contained in:
parent
912bf9d0bd
commit
12bb9c9c21
9 changed files with 466 additions and 31 deletions
20
backend/WordVersioning.Api/Dockerfile
Normal file
20
backend/WordVersioning.Api/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
COPY backend/WordVersioning.Api/WordVersioning.Api.csproj ./backend/WordVersioning.Api/
|
||||
COPY backend/WordVersioning.Api.IntegrationTests/WordVersioning.Api.IntegrationTests.csproj ./backend/WordVersioning.Api.IntegrationTests/
|
||||
COPY backend/WordVersioning.slnx ./backend/
|
||||
|
||||
RUN dotnet restore ./backend/WordVersioning.slnx
|
||||
|
||||
COPY backend ./backend
|
||||
RUN dotnet publish ./backend/WordVersioning.Api/WordVersioning.Api.csproj -c Release -o /app/publish --no-restore
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:8080
|
||||
EXPOSE 8080
|
||||
|
||||
COPY --from=build /app/publish .
|
||||
ENTRYPOINT ["dotnet", "WordVersioning.Api.dll"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue