-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
24 lines (18 loc) · 869 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
from continuumio/miniconda:latest
# avoid errors with "source activate"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# stop the setup script from running the server on install
# cat setup.sh | grep -v 'bash "$STARTUPPATH/startup.sh" $PORT' > install.sh
# basically just removes the startup line and rename the new file to install.sh
RUN git clone https://github.com/tableau/TabPy.git && \
cd TabPy && \
cat setup.sh | grep -v 'bash "$STARTUPPATH/startup.sh" $PORT' > install.sh && \
/bin/bash -c "source install.sh"
RUN source activate Tableau-Python-Server && \
pip install --upgrade pip && \
pip install numpy pandas scikit-learn==0.17.1 scipy textblob nltk vaderSentiment && \
pip install reverse_geocoder geopy && \
python -m textblob.download_corpora lite && \
python -m nltk.downloader vader_lexicon
ADD start.sh /start.sh
ENTRYPOINT bin/bash start.sh