Skip to content

Commit acc23d0

Browse files
committed
updated the docker files for the server, and updated the error in the solution file, and removed the workflow for the tests (for now)
1 parent a309deb commit acc23d0

File tree

4 files changed

+4
-51
lines changed

4 files changed

+4
-51
lines changed

.github/workflows/dotnet-run-tests.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

server/.dockerignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@ README.md
77
.vscode
88
Dockerfile
99
docker-compose.yml
10-
.dockerignore
11-
tests
12-
tests/
13-
tests/**
10+
.dockerignore

server/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
33
WORKDIR /Todo
44
EXPOSE 8080
5-
EXPOSE 8443
65

76
# Build stage for compiling and publishing the application
87
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
98
ARG BUILD_CONFIGURATION=Release
109
WORKDIR /Todo/src
1110

12-
COPY Todo.sln .
13-
COPY src/ .
14-
RUN dotnet restore Todo.sln
11+
COPY . .
12+
RUN dotnet restore
1513
RUN dotnet build -c $BUILD_CONFIGURATION -o /Todo/build
1614

1715
# Publish stage - create the final publish directory
@@ -27,6 +25,6 @@ WORKDIR /Todo
2725
ENV ASPNETCORE_ENVIRONMENT=Production
2826

2927
COPY --from=publish /Todo/publish .
30-
COPY --from=build /Todo/src/Todo.Infrastructure/Migrations Migrations
28+
COPY --from=build /Todo/src/src/Todo.Infrastructure/Migrations Migrations
3129

3230
ENTRYPOINT ["sh", "-c", "dotnet Todo.Api.dll ef database update && dotnet Todo.Api.dll"]

server/Todo.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,4 @@ Global
5858
GlobalSection(ExtensibilityGlobals) = postSolution
5959
SolutionGuid = {BA20D71A-EE1C-4698-A992-8A91B140F27D}
6060
EndGlobalSection
61-
GlobalSection(NestedProjects) = preSolution
62-
{0748DB0B-1E20-49DC-8F7C-9096FD23EC66} = {50148190-E52A-40E6-98AF-55B239FAED07}
63-
EndGlobalSection
6461
EndGlobal

0 commit comments

Comments
 (0)