-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (42 loc) · 1.56 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:20.04
# Note that these labels need to be manually updated with the actual contents of the image
LABEL maintainer="[email protected]"
LABEL us.kbase.ubuntu="20.04"
LABEL us.kbase.python="3.9.12"
LABEL us.kbase.sdk="1.2.1"
LABEL us.kbase.sdkcommit="8def489f648a7ff5657d33ed05f41c60f4766e1b"
# Fix KBase Catalog Registration Issue
ENV PIP_PROGRESS_BAR=off
# Install system dependencies
RUN \
apt-get -y update && \
apt-get -y upgrade && \
export DEBIAN_FRONTEND=noninteractive && \
export TZ=Etc/UTC && \
apt-get -y install gcc make curl git openjdk-8-jre unzip htop
# Copy in the SDK
COPY --from=kbase/kb-sdk:1.2.1 /src /sdk
RUN sed -i 's|/src|/sdk|g' /sdk/bin/*
# Install Conda version py39_4.12.0 and Python 3.9.12
ENV CONDA_VERSION=py39_4.12.0
ENV CONDA_INSTALL_DIR=/opt/conda/py39_4.12.0
RUN \
echo "Installing to ${CONDA_INSTALL_DIR}" && \
curl -o conda.sh -s https://repo.anaconda.com/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh && \
sh ./conda.sh -b -p ${CONDA_INSTALL_DIR} && \
rm conda.sh
# Add in some legacy modules
ADD biokbase $CONDA_INSTALL_DIR/lib/python3.9/site-packages/biokbase
ADD biokbase/user-env.sh /kb/deployment/user-env.sh
ADD requirements.txt /tmp/requirements.txt
ENV PATH=$CONDA_INSTALL_DIR/bin:/sdk/bin:$PATH
run env
# Configure Conda and Install Mamba
RUN \
conda config --add channels conda-forge && \
conda config --set channel_priority strict && \
conda install -y mamba=0.15.3
#Install packages required for base image
RUN \
which pip && \
pip install -r /tmp/requirements.txt