-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.Dockerfile
37 lines (29 loc) · 1.06 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
31
32
33
34
35
36
37
FROM gitpod/workspace-python-3.12
USER root
# Install system dependencies
# - bash-completion for shell completions of invoke
# - gettext for Django translations
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y bash-completion gettext && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER gitpod
ENV NVM_DIR $HOME/.nvm
ENV NODE_VERSION 20.11.0
RUN mkdir $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install $NODE_VERSION && \
nvm alias default $NODE_VERSION && \
nvm use default
RUN python3 -m pip install --user pipx && \
python3 -m pipx ensurepath && \
python3 -m pipx install invoke && \
invoke --print-completion-script=bash >> $HOME/.bash_completion
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# Poetry is already installed in the base Gitpod Python image,
# but we need to upgrade it
RUN poetry self update && \
poetry completions bash >> ~/.bash_completion