---
services:
  download:
    platform: linux/amd64
    build:
      context: .
      target: download
    stdin_open: true
    tty: true
    environment:
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_SESSION_TOKEN
      - AWS_PROFILE
      - AWS_REGION
    env_file:
      - path: .env
        required: false
  lint-and-test:
    platform: linux/amd64
    build:
      context: .
      target: unit-lint
  format:
    platform: linux/amd64
    build:
      context: .
      target: format
    volumes:
      - ./:/var/app
