-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.27 KB
/
docker-compose.yml
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
42
43
44
45
version: "2.1"
volumes:
bazel_cache:
yarn_cache:
services:
# our version of running `npm start` inside the packages cra-example folder
start:
build:
context: .
dockerfile: ./Dockerfile
ports:
- 3000:3000
volumes:
- ./:/src
- bazel_cache:/root/.cache/bazel
- yarn_cache:/usr/local/share/.cache/yarn
working_dir: /src/packages
command: bazel run //cra-example
# our version of running `npm build` inside the packages cra-example folder
build:
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./:/src
- bazel_cache:/root/.cache/bazel
- yarn_cache:/usr/local/share/.cache/yarn
working_dir: /src/packages
command: bazel run //cra-example:bundle
# used for troubleshooting and creating this repo
bazel:
build:
context: .
dockerfile: ./Dockerfile
ports:
- 3000:3000
volumes:
- ./:/src
- bazel_cache:/root/.cache/bazel
- yarn_cache:/usr/local/share/.cache/yarn
command: ["/bin/bash", "-c", "echo \"sleeping indefinitely\"; while true; do sleep 100; done"]