The tricky part seems to be building in one contai...
# ktor
r
The tricky part seems to be building in one container and running in another container. When you multiple gradle instances trying to operate on the same files there are inherently file locking issues. My initial idea was something like this via docker-compose.yml
Copy code
app:
    image: gradle:jdk10
    working_dir: /app
    ports:
      - 9090:8090
    restart: unless-stopped
    env_file:
      - .env
    depends_on:
      - builder
    volumes:
      - .:/app/
    command: gradle run --stacktrace

  builder:
    image: gradle:jdk10
    working_dir: /app
    restart: unless-stopped
    depends_on:
      - db
      - redis
    volumes:
      - .:/app/
    command: gradle build -t