File size: 462 Bytes
eca6215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# docker-compose.yaml for Hugging Face Spaces
version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "7860:7860"  # Default port for Streamlit or Gradio apps
    environment:
      HF_TOKEN: ${HF_TOKEN}  # Hugging Face API token
    command: >
      bash -c "

      python3 -m venv .venv &&

      . .venv/bin/activate &&

      pip install -r requirements.txt &&

      python main.py

      "