File size: 418 Bytes
4b3c9e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: "3.7"

services:
  hf_endpoints_emulator:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: hf_endpoints_emulator
    command: ["--port", "4999", "--handler", "handler.py"]
    volumes:
      - $PWD:/workspace
      - /var/run/docker.sock:/var/run/docker.sock
      - $HOME/.cache/huggingface:/root/.cache/huggingface
    env_file:
      - settings.env
    ports:
      - 4999:4999