@@ -273,7 +273,7 @@ Changes can be made to Razor pages and seen immediately without rebuilds, howeve
273
273
274
274
### Using VS Code or other editors
275
275
276
- Create and ddd the following Dockerfile for the BackEnd application .
276
+ Create and add the following Dockerfile for the BackEnd application .
277
277
278
278
```Dockerfile
279
279
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
285
285
WORKDIR / src
286
286
COPY ConferencePlanner .sln ./
287
287
COPY BackEnd / BackEnd .csproj BackEnd /
288
+ COPY FrontEnd / FrontEnd .csproj FrontEnd /
288
289
COPY ConferenceDTO / ConferenceDTO .csproj ConferenceDTO /
289
- RUN dotnet restore - nowarn : msb3202 , nu1503
290
+ RUN dotnet restore
290
291
COPY . .
291
292
WORKDIR / src / BackEnd
292
293
RUN dotnet build - c Release - o / app
@@ -301,7 +302,7 @@ ENTRYPOINT ["dotnet", "BackEnd.dll"]
301
302
302
303
```
303
304
304
- Create and ddd the following Dockerfile for the BackEnd application .
305
+ Create and add the following Dockerfile for the BackEnd application .
305
306
306
307
```Dockerfile
307
308
FROM mcr .microsoft .com / dotnet / core / aspnet : 2 . 2 AS base
@@ -312,9 +313,10 @@ EXPOSE 443
312
313
FROM mcr .microsoft .com / dotnet / core / sdk : 2 . 2 AS build
313
314
WORKDIR / src
314
315
COPY ConferencePlanner .sln ./
316
+ COPY BackEnd / BackEnd .csproj BackEnd /
315
317
COPY FrontEnd / FrontEnd .csproj FrontEnd /
316
318
COPY ConferenceDTO / ConferenceDTO .csproj ConferenceDTO /
317
- RUN dotnet restore - nowarn : msb3202 , nu1503
319
+ RUN dotnet restore
318
320
COPY . .
319
321
WORKDIR / src / FrontEnd
320
322
RUN dotnet build - c Release - o / app
@@ -342,7 +344,6 @@ services:
342
344
dockerfile : BackEnd / Dockerfile
343
345
ports :
344
346
- " 56009:80"
345
- - " 56001:443"
346
347
environment :
347
348
- ASPNETCORE_ENVIRONMENT = Development
348
349
depends_on :
@@ -354,8 +355,7 @@ services:
354
355
context : .
355
356
dockerfile : FrontEnd / Dockerfile
356
357
ports :
357
- - " 5001:80"
358
- - " 5003:443"
358
+ - " 5002:80"
359
359
environment :
360
360
- ASPNETCORE_ENVIRONMENT = Development
361
361
links :
@@ -394,6 +394,7 @@ Remove or comment out the `.UseUrls(http://localhost:56009)` in BackEnd\Program.
394
394
- Build the Docker images `docker - compose build `
395
395
- Run `docker - compose up - d ` to start the application
396
396
- Run `docker - compose down ` to stop the application
397
+ - Open the application at < http : // localhost:5002>
397
398
398
399
## Bonus
399
400
0 commit comments