Yuchan5386 commited on
Commit
9c75ab6
·
verified ·
1 Parent(s): b53a47b

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +13 -0
dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # 작업 디렉토리 설정
4
+ WORKDIR /app
5
+
6
+ # 소스 코드 복사
7
+ COPY . .
8
+
9
+ # 필요한 패키지 설치
10
+ RUN pip install --no-cache-dir fastapi uvicorn
11
+
12
+ # FastAPI 서버 실행
13
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]