-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (51 loc) · 2.1 KB
/
Dockerfile
File metadata and controls
61 lines (51 loc) · 2.1 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:24.04
USER root
ARG DEBIAN_FRONTEND=noninteractive
# update and upgrade packages
RUN apt-get -y update --fix-missing \
&& apt-get -y upgrade \
&& apt-get -y update \
&& apt-get -y autoremove
# install mono
RUN apt-get -y install ca-certificates gnupg
RUN gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt-get -y update
RUN apt-get -y install mono-devel
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN add-apt-repository ppa:dotnet/backports
RUN apt-get -y update
# install dependencies
RUN apt-get -y install \
git \
python3.11 \
python3-pip \
tar \
unzip \
wget \
openjdk-17-jdk \
vim \
dotnet-runtime-6.0
# install python packages
RUN python3.11 -m pip install --break-system-packages -U setuptools
RUN python3.11 -m pip uninstall --break-system-packages fragpipe-speclib \
&& python3.11 -m pip install --break-system-packages git+https://github.com/Nesvilab/FragPipe-SpecLib.git@master \
&& python3.11 -m pip install --break-system-packages lxml
# set python3.11 as the default python version
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
RUN update-alternatives --set python3 /usr/bin/python3.11
# create a directory with 777 permission and set it to the work directory
RUN mkdir /fragpipe_bin
RUN chmod 777 /fragpipe_bin
WORKDIR /fragpipe_bin
# create directories
RUN mkdir tmp
RUN chmod 777 tmp
# download and install fragPipe
RUN wget https://github.com/Nesvilab/FragPipe/releases/download/24.0/FragPipe-24.0-linux.zip -P fragpipe-24.0
RUN unzip fragpipe-24.0/FragPipe-24.0-linux.zip -d fragpipe-24.0
RUN chmod -R 777 /fragpipe_bin
# set environment variables
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
RUN export JAVA_HOME