forked from ClaytonHunt/UsingDockerForDevAndProd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
41 lines (40 loc) · 1.38 KB
/
docker-compose.build.yml
File metadata and controls
41 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
using-docker-build:
image: dotnet-development
depends_on:
- using-docker-test-report
environment:
- ASPNETCORE_ENVIRONMENT=Production
volumes:
- ./:/app
- /app/src/using-docker.web/wwwroot/lib
- /app/src/using-docker.web/node_modules
- /app/src/using-docker.web/bin
- /app/src/using-docker.web/obj
tty: true
working_dir: /app
entrypoint:
- /bin/sh
- -c
command:
- dotnet restore && cd src/using-docker.web && dotnet publish --configuration release --output /app/published
using-docker-test-report:
image: dotnet-development
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- ./:/app
- /app/src/using-docker.web/wwwroot/lib
- /app/src/using-docker.web/node_modules
- /app/src/using-docker.web/bin
- /app/src/using-docker.web/obj
- /app/test/using-docker.tests/bin
- /app/test/using-docker.tests/obj
tty: true
working_dir: /app
entrypoint:
- /bin/sh
- -c
command:
- dotnet restore && cd test/using-docker.tests && dotnet test -xml /app/reports/testOutput.xml