FROM python:3.11-slim

WORKDIR /app

# 複製依賴檔案
COPY requirements.txt .

# 安裝依賴
RUN pip install --no-cache-dir -r requirements.txt

# 複製程式檔案
COPY human_reply_server.py .

# 暴露端口
EXPOSE 8000

# 啟動伺服器
CMD ["python", "human_reply_server.py"]
