-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 886 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
version: '3.8'
services:
# Build service - builds your OS
build:
image: myos-builder
build:
context: .
dockerfile: Dockerfile
container_name: myos-build
volumes:
- .:/workspace
working_dir: /workspace
user: "${UID:-1000}:${GID:-1000}"
command: make all
# Clean service - removes build artifacts
clean:
image: myos-builder
container_name: myos-clean
volumes:
- .:/workspace
working_dir: /workspace
user: "${UID:-1000}:${GID:-1000}"
command: make clean
# Dev environment - keeps container running for interactive use
dev:
image: myos-builder
build:
context: .
dockerfile: Dockerfile
container_name: myos-dev
volumes:
- .:/workspace
working_dir: /workspace
user: "${UID:-1000}:${GID:-1000}"
stdin_open: true
tty: true
command: /bin/bash