-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (59 loc) · 2.3 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
################## BASE IMAGE ######################
FROM ubuntu:20.04
################### METADATA #######################
LABEL base_image="ubuntu:20.04"
LABEL version="1"
LABEL software="autoclassweb"
LABEL software.version="2.2.1"
LABEL about.summary="AutoClassWeb: a simple web interface for Bayesian clustering"
LABEL about.home="https://github.com/pierrepo/autoclassweb"
LABEL about.documentation="https://github.com/pierrepo/autoclassweb"
LABEL about.license_file="https://github.com/pierrepo/autoclassweb/blob/master/LICENSE.txt"
LABEL about.license="SPDX:BSD-3-Clause"
LABEL extra.identifiers.biotools="autoclassweb"
LABEL about.tags="Genomics Proteomics Omics Clustering Classification"
################## MAINTAINER ######################
LABEL maintainer="Pierre Poulain <[email protected]>"
# Change default shell
SHELL ["/bin/bash", "-c"]
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt update && \
apt -y upgrade && \
apt install -y git && \
apt install -y wget && \
apt install -y libc6-i386 && \
apt autoremove -y && \
apt clean && \
rm -rf /var/lib/apt/lists/* /var/log/dpkg.log
# Create app directory
WORKDIR /app
# Download source code
RUN git clone --depth 1 https://github.com/pierrepo/autoclassweb.git /app
# Install conda
# See https://hub.docker.com/r/conda/miniconda3/dockerfile
ENV PATH /opt/miniconda3/bin:$PATH
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh -O /tmp/miniconda.sh && \
/bin/bash /tmp/miniconda.sh -b -p /opt/miniconda3 && \
rm -f /tmp/miniconda.sh && \
conda update conda
# Install conda env
ARG conda_env=autoclassweb
RUN conda env create -f environment-lock.yml && \
conda clean -afy
ENV PATH /opt/miniconda3/envs/${conda_env}/bin:$PATH
# Install autoclass-c binary
# https://ti.arc.nasa.gov/tech/rse/synthesis-projects-applications/autoclass/autoclass-c/
RUN wget --quiet https://ti.arc.nasa.gov/m/project/autoclass/autoclass-c-3-3-6.tar.gz && \
tar zxvf autoclass-c-3-3-6.tar.gz && \
rm -f autoclass-c-3-3-6.tar.gz
ENV PATH "/app/autoclass-c/:${PATH}"
# Create shared directories
RUN mkdir -p /app/{config,logs,results}
# Expose volume and port
VOLUME /app/config
VOLUME /app/logs
VOLUME /app/results
EXPOSE 5000
# Run the web app
#CMD ["gunicorn", "--config", "gunicorn.py", "flaskapp:app"]