35 lines
655 B
Docker
35 lines
655 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
libsndfile1 \
|
|
libgomp1 \
|
|
libglib2.0-0 \
|
|
libsm6 \
|
|
libxext6 \
|
|
libxrender1 \
|
|
libgl1 \
|
|
libgles2 \
|
|
libegl1 \
|
|
wget \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
|
|
# PaddlePaddle CPU — PyPI 공식 (청화 미러 접속 불안정으로 제거)
|
|
RUN pip install --no-cache-dir paddlepaddle==3.0.0
|
|
|
|
# 나머지 패키지
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /data/uploads /data/outputs
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|