-
Notifications
You must be signed in to change notification settings - Fork 54
/
.gitpod.Dockerfile
25 lines (17 loc) · 922 Bytes
/
.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
FROM gitpod/workspace-full:latest
#docker pull gitpod/workspace-full:2022-06-09-20-58-43
# Move where Pyenv is stored
#RUN sudo mv /home/gitpod/.pyenv /workspace/pyenv
#RUN sudo ln -s /workspace/pyenv /home/gitpod/.pyenv
RUN sudo apt-get install zstd
USER gitpod
RUN git clone https://github.com/pyenv/pyenv-virtualenv.git /home/gitpod/.pyenv/plugins/pyenv-virtualenv
RUN wget -O /home/gitpod/requirements.txt https://raw.githubusercontent.com/gsingers/search_engineering/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.10.6
RUN pyenv global 3.10.6
RUN python3 -m pip install --upgrade pip
RUN pyenv virtualenv 3.10.6 search_eng
RUN bash -i -c "pyenv activate search_eng && pip install -r /home/gitpod/requirements.txt"