-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
27 lines (20 loc) · 877 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
24
25
26
27
FROM python:3.8-buster
COPY requirements.txt /requirements.txt
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
ENV PORT 8501
EXPOSE 8501
COPY NLPmoviereviews /NLPmoviereviews
COPY app.py /app.py
COPY style.css /style.css
COPY images /images
COPY setup.py /setup.py
COPY scripts /scripts
COPY tokenizer.pickle /tokenizer.pickle
COPY saved_model /saved_model
RUN pip install .
RUN [ "python3", "-c", "import nltk; nltk.download('punkt', download_dir='/usr/local/nltk_data')" ]
RUN [ "python3", "-c", "import nltk; nltk.download('stopwords', download_dir='/usr/local/nltk_data')" ]
RUN [ "python3", "-c", "import nltk; nltk.download('wordnet', download_dir='/usr/local/nltk_data')" ]
RUN [ "python3", "-c", "import nltk; nltk.download('omw-1.4', download_dir='/usr/local/nltk_data')" ]
CMD streamlit run app.py --server.port=8501 --server.address=0.0.0.0