forked from vanessa920/aws-comp-nlp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (42 loc) · 973 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM python:3.8
RUN mkdir -p /root/.streamlit
RUN bash -c 'echo -e "\
[general]\n\
email = \"\"\n\
" > /root/.streamlit/credentials.toml'
RUN bash -c 'echo -e "\
[server]\n\
enableCORS = false\n\
" > /root/.streamlit/config.toml'
MAINTAINER [email protected]
USER root
WORKDIR /app
ADD __init__.py /app
ADD engine.py /app
ADD FileControl.py /app
ADD nlp_engine.pkl /app
ADD README.md /app
ADD requirements.txt /app
ADD UI.py /app
ADD UI-control.js /app
ADD UI-style.js /app
ADD utilities.py /app
ADD Dockerfile /app
ADD city_SanJose_Minutes.csv /app
ENV NAME stickers
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN pip install --trusted-host pypi.python.org -r requirements.txt
RUN mkdir -p /root/.streamlit
RUN bash -c 'echo -e "\
[general]\n\
email = \"\"\n\
" > /root/.streamlit/credentials.toml'
RUN bash -c 'echo -e "\
[server]\n\
enableCORS = false\n\
" > /root/.streamlit/config.toml'
EXPOSE 8051
# copying everything over
COPY . .
CMD["screamlit","run","UI.py"]