-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
52 lines (43 loc) · 1.56 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
FROM ubuntu:22.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
# install dependencies
RUN apt-get -y install \
git \
python3.9 \
python3-pip \
tar \
unzip \
wget \
openjdk-17-jdk \
vim \
dotnet-runtime-6.0
# install python packages
RUN pip uninstall easypqp \
&& pip install git+https://github.com/Nesvilab/easypqp.git@master \
&& pip install lxml
# 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/22.0/FragPipe-22.0.zip -P fragPipe-22.0
RUN unzip fragPipe-22.0/FragPipe-22.0.zip -d fragPipe-22.0
RUN chmod -R 777 /fragpipe_bin
# set environment variables
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64/
RUN export JAVA_HOME