version: '3.8'

services:
  android-builder:
    build:
      context: .
      dockerfile: Dockerfile.android
    volumes:
      - .:/app
      - android-sdk-cache:/opt/android-sdk
      - gradle-cache:/root/.gradle
    environment:
      - NODE_ENV=production
    working_dir: /app
    command: /bin/bash
    stdin_open: true
    tty: true
    networks:
      - build-network

volumes:
  android-sdk-cache:
  gradle-cache:

networks:
  build-network:
    driver: bridge

