Get without id
Comment out db
docker.io
This commit is contained in:
2024-11-17 12:22:43 -07:00
parent 23fa7a553e
commit c45310e81a
9 changed files with 57 additions and 29 deletions

View File

@ -1,28 +1,28 @@
# Stage 1: Build Stage
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS Build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# restore
COPY ["src/Sprint-Console/Sprint-Console.csproj", "Sprint-Console/"]
RUN dotnet restore 'Sprint-Console/Sprint-Console.csproj'
COPY ["src/OneReview/OneReview.csproj", "OneReview/"]
RUN dotnet restore 'OneReview/OneReview.csproj'
# build
COPY ["src/Sprint-Console", "Sprint-Console/"]
WORKDIR /src/Sprint-Console
RUN dotnet build 'Sprint-Console.csproj' -c Release -o /app/build
COPY ["src/OneReview", "OneReview/"]
WORKDIR /src/OneReview
RUN dotnet build 'OneReview.csproj' -c Release -o /app/build
# Stage 2: Publish Stage
FROM build AS publish
RUN dotnet publish 'Sprint-Console.csproj' -c Release -o /app/publish
RUN dotnet publish 'OneReview.csproj' -c Release -o /app/publish
# Stage 3: Run Stage
FROM mcr.microsoft.com/dotnet/aspnet:8.0
FROM mcr.microsoft.com/dotnet/aspnet:9.0
ENV ASPNETCORE_HTTP_PORTS=5001
EXPOSE 5001
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT [ "dotnet", "Sprint-Console.dll" ]
ENTRYPOINT [ "dotnet", "OneReview.dll" ]
# docker build -t sprint-console-001 .
# docker images ls | grep -i 001