| FROM python:3.12 |
|
|
| |
| ARG DEBIAN_FRONTEND=noninteractive |
| RUN apt-get update && \ |
| apt-get install -y --no-install-recommends \ |
| ca-certificates \ |
| build-essential \ |
| git \ |
| curl \ |
| tmux \ |
| htop \ |
| nano \ |
| vim \ |
| pipx \ |
| libreadline-dev \ |
| libncursesw5-dev \ |
| libssl-dev \ |
| libsqlite3-dev \ |
| libgdbm-dev \ |
| libc6-dev \ |
| libbz2-dev \ |
| libffi-dev \ |
| libpq-dev \ |
| liblzma-dev \ |
| libopenblas-dev \ |
| libgl1-mesa-dev \ |
| libglib2.0-0 \ |
| libsm6 \ |
| libxext6 \ |
| ffmpeg \ |
| tk-dev \ |
| ninja-build && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
|
|
| RUN pipx ensurepath |
|
|
| RUN pipx install poetry && \ |
| pipx install virtualenv && \ |
| pipx install pipenv |
|
|
|
|
| |
| RUN curl -sL "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64" \ |
| --output /tmp/vscode-cli.tar.gz && \ |
| tar -xf /tmp/vscode-cli.tar.gz -C /usr/bin && \ |
| rm /tmp/vscode-cli.tar.gz |
|
|
|
|
| |
| ENV CONDA_DIR=/opt/conda |
|
|
| RUN curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ |
| /bin/bash ~/miniconda.sh -b -p /opt/conda |
|
|
| |
| ENV PATH=$CONDA_DIR/bin:$PATH |
|
|
| RUN rm ~/miniconda.sh |
|
|
| RUN conda init bash |
| RUN conda config --set auto_activate_base false |
|
|
| |
| RUN echo 'ssh-ccdb() {\n local server\n case $1 in\n cedar)\n server="cedar.alliancecan.ca"\n ;;\n beluga)\n server="beluga.alliancecan.ca"\n ;;\n narval)\n server="narval.alliancecan.ca"\n ;;\n *)\n echo "Usage: ssh-ccdb {cedar|beluga|narval}"\n return 1\n ;;\n esac\n ssh mka267@$server\n}' >> ~/.bashrc |
|
|
| |
| RUN echo 'if [ -x /usr/bin/dircolors ]; then\n eval "$(dircolors -b)"\n alias ls="ls --color=auto"\n alias grep="grep --color=auto"\n alias fgrep="fgrep --color=auto"\n alias egrep="egrep --color=auto"\nfi' >> ~/.bashrc |
|
|
| |
| RUN echo 'PS1="\\[\\e[0;32m\\]\\u@\\h\\[\\e[m\\]:\\[\\e[0;34m\\]\\w\\[\\e[m\\]\\$ "' >> ~/.bashrc |
|
|
| |
| RUN echo 'export LESS=" -R"' >> ~/.bashrc |
|
|
| |
| |
|
|
| |
| RUN echo 'force_color_prompt=yes\nif [ -n "$force_color_prompt" ]; then\n if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then\n color_prompt=yes\n else\n color_prompt=\n fi\nfi\n\nif [ "$color_prompt" = yes ]; then\n PS1="\\${debian_chroot:+(\$debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ "\nelse\n PS1="\\${debian_chroot:+(\$debian_chroot)}\\u@\\h:\\w\\$ "\nfi\nunset color_prompt force_color_prompt' >> ~/.bashrc |
|
|
| RUN git config --global user.email "git@masoudka.com" && \ |
| git config --global user.name "Masoud KA" |
|
|
| |
|
|