Spaces:
Runtime error
Runtime error
SimHS98 commited on
Commit ·
20aef2c
1
Parent(s): e8146db
Add Dockerfile
Browse files123456789101112131415161718# 1. 기본 Python 3.11 이미지 사용FROM python:3.11-slim
# 2. 작업 디렉토리 설정WORKDIR /code
# 3. requirements.txt 파일을 복사하고 설치COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# 4. hf_api.py 파일 복사COPY hf_api.py .
# 5. FastAPI 서버가 사용할 8000번 포트 개방EXPOSE 8000
# 6. Space가 실행될 때 이 명령어로 hf_api.py 서버를 시작CMD ["uvicorn", "hf_api.py", "--host", "0.0.0.0", "--port", "8000"]DockerfileAdded+18