bilstm / Dockerfile
neyugntuan's picture
Create Dockerfile
4fec0a8 verified
raw
history blame contribute delete
503 Bytes
FROM python:3.10-slim
WORKDIR /app
# Cài dependency hệ thống cần cho underthesea & numpy
RUN apt-get update && apt-get install -y \
build-essential \
libgomp1 \
wget \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements rồi cài
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy toàn bộ code
COPY . /app/
# Expose cổng FastAPI
EXPOSE 8000
# Chạy API bằng uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]