ViMNer / Dockerfile
Linhz's picture
Update Dockerfile
19c1ccb verified
raw
history blame
576 Bytes
# Sử dụng một base image có sẵn
FROM python:3.8
# Cài đặt OpenJDK (Java Development Kit)
RUN apt-get update && \
apt-get install -y default-jdk
# Copy tất cả các file cần thiết vào thư mục /app trong container
WORKDIR ViMNer/
COPY app.py
COPY Model/NER/VLSP2021/Predict_Ner.py Model/NER/VLSP2021/
COPY VnCoreNLP/ VnCoreNLP/
# Cài đặt các thư viện Python từ requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Câu lệnh chạy ứng dụng khi container được khởi động
CMD ["streamlit", "run", "app.py"]