forked from wilhelm-lab/oktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.31 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
FROM python:3.8.12
# Tell docker that we don't want to be bothered with questions
ARG DEBIAN_FRONTEND=noninteractive
# for mono installation
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt-get update && apt-get install -y \
mono-devel \
ssh \
zip \
&& rm -rf /var/lib/apt/lists/*
# set root directory
ENV HOME /root
WORKDIR /root
# ADD keys for our gitlab
ADD keys /root/.ssh
RUN chmod 700 /root/.ssh/id_rsa
RUN pip install poetry==1.3.2
# poetry useses virtualenvs by default -> we want global installation
RUN poetry config virtualenvs.create false
ADD pyproject.toml /root/pyproject.toml
ADD poetry.lock /root/poetry.lock
RUN poetry install --no-root
# install percolator
RUN ZIP=ubuntu.tar.gz && \
wget https://github.com/percolator/percolator/releases/download/rel-3-05/$ZIP -O /tmp/$ZIP && \
tar xvzf /tmp/$ZIP && \
chmod -R 755 /tmp/* && \
dpkg -i percolator-v3-05-linux-amd64.deb && \
rm /tmp/$ZIP
# Delete ssh keys
RUN rm -r /root/.ssh
ADD oktoberfest/ /root/oktoberfest
# Used by ProteomicsDB runs to describe the oktoberfest version
ADD hash.file /root/hash.file