-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG BASE_IMAGE | ||
FROM --platform=$TARGETPLATFORM $BASE_IMAGE as build | ||
LABEL maintainer="Maksym Sobolyev <[email protected]>" | ||
|
||
USER root | ||
|
||
# Set Environment Variables | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /docker | ||
|
||
# Build & install everything | ||
RUN apt-get update | ||
RUN apt-get install --no-install-recommends -y git lsb-release ca-certificates | ||
COPY docker/install_conda.sh /docker | ||
RUN /docker/install_conda.sh | ||
COPY docker/install_requirements.sh /docker | ||
COPY requirements.txt /docker | ||
RUN cd /docker && ./install_requirements.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
apt-get install --no-install-recommends -y curl gpg | ||
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > /tmp/conda.gpg | ||
install -o root -g root -m 644 /tmp/conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg | ||
rm /tmp/conda.gpg | ||
|
||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list | ||
|
||
apt update | ||
apt-get install --no-install-recommends -y conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
CONDA_MAINENV="Infernos" | ||
|
||
apt-get install --no-install-recommends -y gcc g++ libc6-dev cmake pkg-config make | ||
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 |