47 lines
1.2 KiB
Docker
47 lines
1.2 KiB
Docker
# BtToxin_Digger Docker 镜像
|
|
FROM continuumio/miniconda3:4.10.3
|
|
|
|
LABEL maintainer="your-email@example.com" \
|
|
description="BtToxin_Digger for Pipeline" \
|
|
version="1.0.10"
|
|
|
|
ENV LANG=C.UTF-8 \
|
|
PATH=/opt/conda/envs/bttoxin/bin:$PATH \
|
|
CONDA_DEFAULT_ENV=bttoxin \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
# 配置 conda
|
|
RUN conda config --add channels defaults && \
|
|
conda config --add channels bioconda && \
|
|
conda config --add channels conda-forge && \
|
|
conda config --set channel_priority flexible && \
|
|
conda install -n base -c conda-forge mamba -y
|
|
|
|
# 安装 BtToxin_Digger
|
|
RUN mamba install -y \
|
|
python=3.7.10 \
|
|
perl=5.26.2 && \
|
|
mamba install -y \
|
|
bttoxin_digger=1.0.10 && \
|
|
conda clean -afy
|
|
|
|
# 安装额外工具
|
|
RUN apt-get update && apt-get install -y \
|
|
curl wget jq git && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# 创建工作目录
|
|
RUN mkdir -p /workspace/input /workspace/output /workspace/logs
|
|
|
|
WORKDIR /workspace
|
|
|
|
# 复制入口脚本
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
|
|
CMD BtToxin_Digger --version || exit 1
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
CMD ["--help"]
|