Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit c455a29

Browse files
authored
Update 6. Production Readiness and Deployment.md
1 parent ba26a9c commit c455a29

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/6. Production Readiness and Deployment.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Changes can be made to Razor pages and seen immediately without rebuilds, howeve
273273

274274
### Using VS Code or other editors
275275

276-
Create and ddd the following Dockerfile for the BackEnd application.
276+
Create and add the following Dockerfile for the BackEnd application.
277277

278278
```Dockerfile
279279
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
@@ -285,8 +285,9 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
285285
WORKDIR /src
286286
COPY ConferencePlanner.sln ./
287287
COPY BackEnd/BackEnd.csproj BackEnd/
288+
COPY FrontEnd/FrontEnd.csproj FrontEnd/
288289
COPY ConferenceDTO/ConferenceDTO.csproj ConferenceDTO/
289-
RUN dotnet restore -nowarn:msb3202,nu1503
290+
RUN dotnet restore
290291
COPY . .
291292
WORKDIR /src/BackEnd
292293
RUN dotnet build -c Release -o /app
@@ -301,7 +302,7 @@ ENTRYPOINT ["dotnet", "BackEnd.dll"]
301302

302303
```
303304

304-
Create and ddd the following Dockerfile for the BackEnd application.
305+
Create and add the following Dockerfile for the BackEnd application.
305306

306307
```Dockerfile
307308
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
@@ -312,9 +313,10 @@ EXPOSE 443
312313
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
313314
WORKDIR /src
314315
COPY ConferencePlanner.sln ./
316+
COPY BackEnd/BackEnd.csproj BackEnd/
315317
COPY FrontEnd/FrontEnd.csproj FrontEnd/
316318
COPY ConferenceDTO/ConferenceDTO.csproj ConferenceDTO/
317-
RUN dotnet restore -nowarn:msb3202,nu1503
319+
RUN dotnet restore
318320
COPY . .
319321
WORKDIR /src/FrontEnd
320322
RUN dotnet build -c Release -o /app
@@ -342,7 +344,6 @@ services:
342344
dockerfile: BackEnd/Dockerfile
343345
ports:
344346
- "56009:80"
345-
- "56001:443"
346347
environment:
347348
- ASPNETCORE_ENVIRONMENT=Development
348349
depends_on:
@@ -354,8 +355,7 @@ services:
354355
context: .
355356
dockerfile: FrontEnd/Dockerfile
356357
ports:
357-
- "5001:80"
358-
- "5003:443"
358+
- "5002:80"
359359
environment:
360360
- ASPNETCORE_ENVIRONMENT=Development
361361
links:
@@ -394,6 +394,7 @@ Remove or comment out the `.UseUrls(http://localhost:56009)` in BackEnd\Program.
394394
- Build the Docker images `docker-compose build`
395395
- Run `docker-compose up -d` to start the application
396396
- Run `docker-compose down` to stop the application
397+
- Open the application at <http://localhost:5002>
397398
398399
## Bonus
399400

0 commit comments

Comments
 (0)