-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·46 lines (35 loc) · 1.41 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
# Software installation, no database files
FROM mambaorg/micromamba:jammy as app_base
# get software version from VERSION file
ARG GAMBITTOOLS_SRC_URL=https://github.com/gambit-suite/gambittools/archive/refs/heads/main.zip
LABEL base.image="mambaorg/micromamba:0.27.0"
LABEL dockerfile.version="1"
LABEL software="GAMBITDB"
LABEL software.version=${GAMBITDB_SOFTWARE_VERSION}
LABEL description="Create databases for Gambit"
LABEL website="https://github.com/gambit-suite/gambitdb"
LABEL license="https://github.com/gambit-suite/gambitdb/blob/master/LICENSE"
LABEL maintainer1="Andrew Page"
LABEL maintainer.email1="[email protected]"
LABEL maintainer2="Michelle Scribner"
LABEL maintainer.email2="[email protected]"
# Environment
ENV LC_ALL=C.UTF-8
USER root
# Install mamba environment
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # Subsequent RUN commands use environment
RUN micromamba install -c conda-forge -y zlib sqlite
RUN micromamba install -c bioconda -c conda-forge -y gambit
# Install GAMBITtools package
RUN pip install ${GAMBITTOOLS_SRC_URL} && \
micromamba clean -a -y
# Install GAMBITDB
ADD . /gambitdb
WORKDIR /gambitdb
RUN pip3 install .
# Make sure conda, python, and GAMBITDB are in the path
ENV PATH="/opt/conda/bin:${PATH}"
RUN bash /gambitdb/run_tests.sh