forked from gsingers/search_fundamentals_course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
31 lines (24 loc) · 1.11 KB
/
.gitpod.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
FROM gitpod/workspace-full:latest
RUN sudo apt-get install -y graphviz
# Move where Pyenv is stored
#RUN sudo mv /home/gitpod/.pyenv /workspace/pyenv
#RUN sudo ln -s /workspace/pyenv /home/gitpod/.pyenv
RUN wget -O /home/gitpod/requirements.txt https://raw.githubusercontent.com/gsingers/search_fundamentals_course/main/requirements.txt
RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> /home/gitpod/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> /home/gitpod/.bashrc
RUN echo 'eval "$(pyenv virtualenv-init -)"' >> /home/gitpod/.bashrc
RUN pyenv install 3.9.7
RUN pyenv global 3.9.7
# TODO: we are using 3.9.7 for the weekly projects, but here we are pip installing into the default for the Docker image. We should probably create a pyenv.
RUN pip install kaggle
RUN pip install requests
RUN pip install ipython
RUN pip install urljoin
RUN pip install lxml
RUN pip install graphviz
RUN pip install pandas
RUN pip install numexpr
RUN pip install flask
RUN pip install opensearch-py
RUN pyenv virtualenv 3.9.7 search_fundamentals
RUN bash -i -c "pyenv activate search_fundamentals && pip install -r /home/gitpod/requirements.txt"