-
Notifications
You must be signed in to change notification settings - Fork 208
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.4 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
# Standard Linux build
tauri-build-linux:
build:
context: .
dockerfile: Dockerfile.build
target: artifacts
volumes:
- ./dist/docker-artifacts:/artifacts
environment:
- RUST_LOG=info
profiles:
- build
- linux
# Cross-platform build
tauri-build-cross:
build:
context: .
dockerfile: Dockerfile.cross
volumes:
- ./dist/docker-artifacts:/app/dist/artifacts
environment:
- BUILD_ARM64=true
- RUST_LOG=info
profiles:
- build
- cross
# Development environment with volume mounts
tauri-dev:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/app
- /app/node_modules
- /app/src-tauri/target
environment:
- DISPLAY=${DISPLAY:-:0}
- RUST_LOG=debug
network_mode: host
stdin_open: true
tty: true
profiles:
- dev
# Build artifacts extractor
artifacts-extractor:
image: alpine:latest
volumes:
- ./dist/docker-artifacts:/artifacts
command: |
sh -c "
echo '📦 Available artifacts:' &&
find /artifacts -type f -exec ls -lh {} \; | awk '{print \" \" \$$9 \" (\" \$$5 \")\"}' &&
echo '✅ Artifacts ready for use!'
"
profiles:
- extract
# Named volumes for caching
volumes:
cargo-cache:
driver: local
npm-cache:
driver: local