Skip to content

Commit

Permalink
ci: add TestResult and coverage to .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
raczu committed Apr 2, 2024
1 parent af441a4 commit 020dc64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Server/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/coverage.json
**/TestResults
LICENSE
README.md
8 changes: 4 additions & 4 deletions Server/server.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
COPY . /source
WORKDIR /source/ReasnAPI/ReasnAPI
COPY ReasnAPI /source
WORKDIR /source/ReasnAPI
ARG TARGETARCH
RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
dotnet publish -a ${TARGETARCH/amd64/x64} --use-current-runtime --self-contained false -o /app

FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS development
COPY . /source
WORKDIR /source/ReasnAPI/ReasnAPI
COPY ReasnAPI /source
WORKDIR /source/ReasnAPI
CMD ["dotnet", "run", "--no-launch-profile"]

FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS production
Expand Down

0 comments on commit 020dc64

Please sign in to comment.