-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: FastAPI 마이그레이션 및 BellSoft JDK 환경에서의 파이썬 스크립트 실행 오류 해결 완료 (#97)
- Loading branch information
Showing
20 changed files
with
1,118 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Python 3.9 slim 베이스 | ||
FROM python:3.9-slim | ||
|
||
# ffmpeg 설치 (pydub 라이브러리 의존성) | ||
RUN apt-get update \ | ||
&& apt-get install -y ffmpeg \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# 작업 디렉터리 지정 | ||
WORKDIR /app | ||
|
||
# 파이썬 패키지 설치 | ||
COPY stempo-rhythm/requirements.txt /app/ | ||
RUN pip install --no-cache-dir --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements.txt | ||
|
||
# 소스 복사 | ||
COPY stempo-rhythm/main.py /app/ | ||
|
||
# FastAPI 서버를 위한 포트 노출 | ||
EXPOSE 5000 | ||
|
||
# Uvicorn으로 FastAPI 서버 실행 | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.