-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.streamlit
38 lines (27 loc) · 1015 Bytes
/
Dockerfile.streamlit
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
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.8-slim-buster
ENV STREAMLIT_SERVER_BASEURLPATH=""
ENV STREAMLIT_BROWSER_SERVERADDRESS="localhost"
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
RUN apt-get update && \
apt-get install -y git build-essential
WORKDIR /code
COPY requirements.txt /code
RUN pip install --upgrade pip && \
pip install libpecos==0.1.0 && \
pip install -r requirements.txt
RUN apt-get purge -y --auto-remove git build-essential && \
apt-get -y autoclean && \
rm -rf /tmp/*
COPY grants_tagger/ /code/grants_tagger
COPY setup.py /code
RUN pip install . --no-dependencies
#COPY models/disease_mesh_cnn-2021.03.1/ models/disease_mesh_cnn-2021.03.1/
#COPY models/tfidf-svm-2020.05.2.pkl models/
#COPY models/scibert-2020.05.5/ models/scibert-2020.05.5/
COPY models/label_binarizer.pkl models/
#COPY models/disease_mesh_label_binarizer.pkl models/
COPY models/xlinear-0.2.3 models/xlinear-0.2.3
COPY results/ results/
EXPOSE 8501 850
CMD ["streamlit", "run", "grants_tagger/streamlit_visualize.py"]