-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.gitpod.Dockerfile
26 lines (20 loc) · 751 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
26
FROM gitpod/workspace-postgres:latest
SHELL ["/bin/bash", "-c"]
RUN sudo apt-get update \
&& sudo apt-get update \
&& sudo apt-get clean \
&& sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
# That Gitpod install pyenv for me? no, thanks
WORKDIR /home/gitpod/
RUN rm .pyenv -Rf
RUN rm .gp_pyenv.d -Rf
RUN curl https://pyenv.run | bash
RUN pyenv update && pyenv install 3.10.7 && pyenv global 3.10.7
RUN pip install pipenv
RUN npm i heroku -g
# remove PIP_USER environment
USER gitpod
RUN if ! grep -q "export PIP_USER=no" "$HOME/.bashrc"; then printf '%s\n' "export PIP_USER=no" >> "$HOME/.bashrc"; fi
RUN echo "" >> $HOME/.bashrc
RUN echo "unset DATABASE_URL" >> $HOME/.bashrc
RUN echo "export DATABASE_URL" >> $HOME/.bashrc