first commit
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM paddlepaddle/paddle:3.2.0-gpu-cuda11.8-cudnn8.9
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
poppler-utils \
|
||||
tesseract-ocr \
|
||||
tesseract-ocr-kor \
|
||||
libgl1 \
|
||||
curl \
|
||||
tree \
|
||||
git \
|
||||
build-essential && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt && \
|
||||
pip install --no-cache-dir paddleocr[all]
|
||||
|
||||
WORKDIR /workspace
|
||||
COPY . .
|
||||
|
||||
CMD ["uvicorn", "api:app", "--workers", "2", "--host", "0.0.0.0", "--port", "8880"]
|
||||
Reference in New Issue
Block a user