Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 82e6c71

Browse files
Update .gitpod.Dockerfile
1 parent 9bf7d8d commit 82e6c71

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎.gitpod.Dockerfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
FROM gitpod/workspace-full:latest
22

3-
USER gitpod
3+
SHELL ["/bin/bash", "-c"]
4+
5+
RUN sudo apt-get update \
6+
&& sudo apt-get update \
7+
&& sudo apt-get clean \
8+
&& sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
9+
10+
# That Gitpod install pyenv for me? no, thanks
11+
WORKDIR /home/gitpod/
12+
RUN rm .pyenv -Rf
13+
RUN rm .gp_pyenv.d -Rf
14+
RUN curl https://pyenv.run | bash
15+
416

517
RUN pyenv update && pyenv install 3.10.7 && pyenv global 3.10.7
18+
RUN pip install pipenv
19+
20+
# remove PIP_USER environment
21+
USER gitpod
22+
RUN if ! grep -q "export PIP_USER=no" "$HOME/.bashrc"; then printf '%s\n' "export PIP_USER=no" >> "$HOME/.bashrc"; fi
23+
RUN echo "" >> $HOME/.bashrc
24+
RUN echo "unset DATABASE_URL" >> $HOME/.bashrc
25+
RUN echo "export DATABASE_URL" >> $HOME/.bashrc
626

727
RUN pip3 install pytest==6.2.5 pytest-testdox mock
828
RUN npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /