forked from compomics/ThermoRawFileParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (40 loc) · 1.83 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
53
54
55
################## BASE IMAGE ######################
FROM mono:latest
################## METADATA ######################
LABEL base_image="mono:latest"
LABEL version="1"
LABEL software="ThermoRawFileParser"
LABEL software.version="1.0.0"
LABEL about.summary="A software to convert Thermo RAW files to mgf and mzML"
LABEL about.home="https://github.com/compomics/ThermoRawFileParser"
LABEL about.documentation="https://github.com/compomics/ThermoRawFileParser"
LABEL about.license_file="https://github.com/compomics/ThermoRawFileParser"
LABEL about.license="SPDX:Unknown"
LABEL about.tags="Proteomics"
################## MAINTAINER ######################
MAINTAINER Niels Hulstaert <niels.hulstaert@ugent.be>
MAINTAINER Yasset PErez-Riverol <ypriverol@gmail.com>
################## INSTALLATION ######################
USER root
RUN apt-get update
RUN apt-get install -y git
### Because we are not using the based image from biocontainers we need to create the user and data folder ########
RUN mkdir /data /config
RUN groupadd fuse && \
useradd --create-home --shell /bin/bash --user-group --uid 1000 --groups sudo,fuse biodocker && \
echo `echo "biodocker\nbiodocker\n" | passwd biodocker` && \
chown biodocker:biodocker /data && \
chown biodocker:biodocker /config
############## USER Create ##############
USER biodocker
RUN mkdir -p /home/biodocker/bin/
WORKDIR /home/biodocker/bin/
RUN git clone -b master --single-branch https://github.com/compomics/ThermoRawFileParser /home/biodocker/bin
RUN msbuild
COPY ThermoRawFileParser /home/biodocker/bin/bin/Debug/
USER root
RUN chmod +x /home/biodocker/bin/bin/Debug/ThermoRawFileParser
RUN chmod +x /home/biodocker/bin/bin/Debug/ThermoRawFileParser.exe
RUN chown biodocker:biodocker /home/biodocker/bin/bin/Debug/ThermoRawFileParser
USER biodocker
ENV PATH=/home/biodocker/bin/bin/Debug/:$PATH