Skip to content

Commit c46e056

Browse files
authored
Merge pull request #15 from CleanEngine/dev
config: Dockerfile
2 parents abf9f8b + 3a83e61 commit c46e056

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ RUN pip install --no-cache-dir -r requirements.txt
1313
# 애플리케이션 코드 복사
1414
COPY . .
1515

16-
# # FastAPI 서버 실행
17-
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
16+
# 포트 노출 (FastAPI용 8000, MLflow용 5000)
17+
EXPOSE 8000 5000
18+
19+
# FastAPI + MLflow 서버 동시 실행
20+
CMD ["bash", "-c", "mlflow server --host 0.0.0.0 --port 5000 & uvicorn main:app --host 0.0.0.0 --port 8000"]

0 commit comments

Comments
 (0)