|
1 |
| -# This image will serve as a starting point for devcontainer.json. |
2 |
| -# Get latest image of Fedora as the base image. |
3 |
| -FROM docker.io/library/fedora:latest |
| 1 | +FROM mcr.microsoft.com/devcontainers/typescript-node:16-bookworm |
4 | 2 |
|
5 |
| -# Install supported python versions and nodejs. |
6 |
| -RUN dnf -y --nodocs install /usr/bin/{python3.7,python3.8,python3.9,python3.10,python3.11,git,conda,clang} && \ |
7 |
| - dnf clean all |
| 3 | +RUN apt-get install -y wget bzip2 |
8 | 4 |
|
9 |
| -ENV NVM_VERSION=0.39.3 |
10 |
| -ENV NODE_VERSION=16.17.1 |
11 |
| -ENV NPM_VERSION=8.19.3 |
12 |
| - |
13 |
| -# Installation instructions from https://github.com/nvm-sh/nvm . |
14 |
| -RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh | bash |
15 |
| -RUN export NVM_DIR="$HOME/.nvm" && \ |
16 |
| - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ |
17 |
| - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \ |
18 |
| - nvm install $NODE_VERSION && \ |
19 |
| - npm install -g npm@$NPM_VERSION |
20 |
| - |
21 |
| -# For clean open source builds. |
22 |
| -ENV DISABLE_TRANSLATIONS=true |
| 5 | +# Run in silent mode and save downloaded script as anaconda.sh. |
| 6 | +# Run with /bin/bash and run in silent mode to /opt/conda. |
| 7 | +# Also get rid of installation script after finishing. |
| 8 | +RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2023.07-1-Linux-x86_64.sh -O ~/anaconda.sh && \ |
| 9 | + /bin/bash ~/anaconda.sh -b -p /opt/conda && \ |
| 10 | + rm ~/anaconda.sh |
23 | 11 |
|
| 12 | +ENV PATH="/opt/conda/bin:$PATH" |
24 | 13 |
|
| 14 | +# Sudo apt update needs to run in order for installation of fish to work . |
| 15 | +RUN sudo apt update && \ |
| 16 | + sudo apt install fish -y |
25 | 17 |
|
26 | 18 |
|
0 commit comments