version: '3'
services:
default:
build:
context: lazyDir
dockerfile: centos7.Dockerfile
args:
uid: "${_UID:-1000}"
gid: "${_GID:-1000}"
volumes:
- .:/home/android/workspace
- ~/android/sdk:/opt/android/sdk
- ~/.gradle:/home/android/.gradle
working_dir: /home/android/workspace
stdin_open: true
tty: true
hostname: build-android.local
container_name: build-android.local
command: bash
networks:
- bridge
deploy:
resources:
limits:
cpus: '1.5'
memory: 1280M
networks:
bridge:
external: true