-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from yambottle/master
feat: ✨ upgrade image
- Loading branch information
Showing
6 changed files
with
97 additions
and
163 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
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 |
---|---|---|
|
@@ -6,17 +6,19 @@ FROM golang:alpine as go_tmp | |
COPY ./utilities/startup.go /startup.go | ||
RUN cd / && go build startup.go | ||
|
||
FROM debian:11-slim as miniconda-build | ||
FROM debian:12-slim as miniconda-build | ||
LABEL maintainerName="Raphael Guzman" \ | ||
maintainerEmail="[email protected]" \ | ||
maintainerCompany="DataJoint" | ||
|
||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG CONDA_VER | ||
ARG CONDA_SUFFIX | ||
ARG PY_LABEL | ||
ARG PY_VER | ||
ARG CONDA_SHA256 | ||
# Create anaconda group user, install dependencies, install Conda | ||
RUN \ | ||
groupadd -r anaconda && \ | ||
|
@@ -42,8 +44,12 @@ RUN \ | |
# libxrender1 git mercurial subversion && \ | ||
apt-get clean && \ | ||
wget --quiet $(echo "https://repo.anaconda.com/miniconda\ | ||
/Miniconda3-${PY_LABEL}${CONDA_VER}${CONDA_SUFFIX}-Linux-$(uname -m).sh" | \ | ||
tr -d "\n" | tr -d "\t") -O ~/miniconda.sh && \ | ||
/Miniconda3-${PY_LABEL}${CONDA_VER}${CONDA_SUFFIX}-Linux-x86_64.sh" | \ | ||
tr -d "\n" | tr -d "\t") && \ | ||
echo "${CONDA_SHA256} Miniconda3-${PY_LABEL}${CONDA_VER}${CONDA_SUFFIX}-Linux-x86_64.sh" \ | ||
> miniconda.sha256 && \ | ||
if [ $(sha256sum -c miniconda.sha256 | awk '{print $2}') != "OK" ] ; then exit 1; fi && \ | ||
mv Miniconda3-${PY_LABEL}${CONDA_VER}${CONDA_SUFFIX}-Linux-x86_64.sh ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh && \ | ||
/opt/conda/bin/conda clean -tipy && \ | ||
|
@@ -67,6 +73,7 @@ RUN \ | |
find /opt/conda/conda-meta -user anaconda -exec chmod u+rwx,g+rwx,o-rwx "{}" \; && \ | ||
conda clean -ya | ||
|
||
ENV HOME /home/anaconda | ||
ENV APT_REQUIREMENTS /tmp/apt_requirements.txt | ||
ENV PIP_REQUIREMENTS /tmp/pip_requirements.txt | ||
ENV CONDA_REQUIREMENTS /tmp/conda_requirements.txt | ||
|
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
Oops, something went wrong.