forked from sambanova/ai-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (21 loc) · 778 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.9
RUN python3 -m pip install -U pip
RUN apt update \
&& apt install ffmpeg libsm6 libxext6 -y \
&& apt install pandoc -y \
&& apt install tesseract-ocr -y \
&& apt install poppler-utils -y \
&& apt autoremove \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app/data_extraction
# Copy the AI Starterkit into the container at /app
COPY . /app
RUN pip install -r requirements.txt
RUN python -c 'from langchain_community.embeddings import HuggingFaceEmbeddings; HuggingFaceEmbeddings();'
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader averaged_perceptron_tagger
RUN pip install notebook
EXPOSE 8888
CMD ["jupyter", "notebook", "--ip", "0.0.0.0", "--port", "8888", "--allow-root" ]