Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 18, 2024
1 parent b1462a1 commit a5a0805
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /docker

# Build & install everything
RUN apt-get update
RUN apt-get install --no-install-recommends -y git lsb-release ca-certificates
RUN apt-get install --no-install-recommends -y git lsb-release ca-certificates && apt-get clean
COPY docker/install_conda.sh /docker
RUN /docker/install_conda.sh
COPY docker/install_requirements.sh /docker
Expand Down
1 change: 1 addition & 0 deletions docker/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] h

apt update
apt-get install --no-install-recommends -y conda
apt-get clean
10 changes: 9 additions & 1 deletion docker/install_requirements.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ set -e
set -x

CONDA_MAINENV="Infernos"
PYTHON_CMD="python${PYTON_VER}"
DEV_PKGS="gcc g++ libc6-dev cmake pkg-config make"

apt-get install --no-install-recommends -y gcc g++ libc6-dev cmake pkg-config make
apt-get install --no-install-recommends -y ${DEV_PKGS}
. /opt/conda/etc/profile.d/conda.sh
conda create -y --name "${CONDA_MAINENV}" python=${PYTON_VER}
conda activate "${CONDA_MAINENV}"
conda install -y pip
${PYTHON_CMD} -m pip install -U -r requirements.txt
apt-get remove -y ${DEV_PKGS}
apt-get autoremove -y
apt-get clean
rm -r ~/.cache
mkdir ~/.cache

0 comments on commit a5a0805

Please sign in to comment.