forked from aeroheim/audio-file-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1013 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1013 Bytes
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
46
version: '3.8'
services:
# Build service - builds all artifacts
build:
build:
context: .
dockerfile: Dockerfile
target: stage_js_build
image: audio-file-decoder:build
volumes:
- ./dist:/src/dist
command: >
bash -c "npm run build-wasm && npm run build"
# Development service - interactive environment
dev:
build:
context: .
dockerfile: Dockerfile
target: development
image: audio-file-decoder:dev
volumes:
- .:/src
- /src/node_modules
- /src/emsdk
- /src/deps
working_dir: /src
stdin_open: true
tty: true
user: emscripten
# Quick build service - assumes deps are already built
quick-build:
build:
context: .
dockerfile: Dockerfile
target: stage_ffmpeg_build
image: audio-file-decoder:quick-build
volumes:
- .:/src
- /src/node_modules
- /src/deps
working_dir: /src
command: >
bash -c "npm run build-wasm && npm run build"