-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
40 lines (32 loc) · 1.34 KB
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
FROM mambaorg/micromamba:2-ubuntu24.04
# This only installs dinosaur
LABEL description="DIA-NN, additional stuff and dinosaur which does not work in biocontainer due to lack of fontconfig"
ARG NEW_MAMBA_USER=mambauser
ARG NEW_MAMBA_USER_ID=1
ARG NEW_MAMBA_USER_GID=1
USER root
RUN apt update && apt upgrade -y
# to have envsubst, ps
RUN apt install -y gettext-base procps
# to get DIA-NN
RUN apt install -y wget unzip libgomp1 locales dotnet-sdk-8.0
# for dinosaur (need openjdk < 25)
RUN micromamba install -y -n base -c conda-forge -c bioconda dinosaur=1.2.0 pyarrow=23.0 openjdk=23.0.1
# For DIA-NN
# Configure locale to avoid runtime errors
RUN sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen && \
locale-gen && \
update-locale LANG=en_US.UTF-8
# Set environment variables for locale
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# Download DIA-NN version <version>
RUN wget https://github.com/vdemichev/DiaNN/releases/download/2.0/DIA-NN-2.3.1-Academia-Linux.zip -O /tmp/diann.Linux.zip
#RUN wget https://github.com/vdemichev/DiaNN/releases/download/1.9.2/diann-1.9.2.Linux_update_2024-10-31.zip -O /tmp/diann.Linux.zip
# Unzip the DIA-NN package
RUN cd / && unzip /tmp/diann.Linux.zip
RUN rm /tmp/diann.Linux.zip
# Set appropriate permissions for the DIA-NN folder
RUN chmod -R 775 /diann-2.3.1
ENV PATH="${PATH}:/diann-2.3.1"