---
services:
  function:
    platform: linux/amd64
    build:
      context: .
      target: deploy
      args:
        version: "local-dev"
    volumes:
      - ./update_dns_firewall:/var/task/update_dns_firewall
    ports:
      - "9000:8080"
    environment:
      - DD_ENV=dev
      - DD_SERVICE=update-dns-firewall
      - DD_TRACE_ENABLED=false
      - DD_ENHANCED_METRICS=false
      - PYTHONDONTWRITEBYTECODE=1
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_SESSION_TOKEN
      - LOGGER_LEVEL=INFO
  lint-and-test:
    build:
      context: .
      target: lint-and-test
    volumes:
      - ./build:/var/app/build
