forked from EGA-archive/beacon2-ri-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 890 Bytes
/
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
FROM ubuntu:20.04
# Build env
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install apt-utils wget bzip2 git cpanminus perl-doc gcc make libbz2-dev zlib1g-dev libncurses5-dev libncursesw5-dev liblzma-dev libcurl4-openssl-dev pkg-config libssl-dev aria2 unzip jq vim sudo default-jre python3-pip && \
pip install xlsx2csv
# Download app
RUN mkdir /usr/share/beacon-ri
WORKDIR /usr/share/beacon-ri/
RUN git clone https://github.com/DanielNaro/beacon2-ri-tools.git
# Install Perl modules
WORKDIR /usr/share/beacon-ri/beacon2-ri-tools
RUN cpanm --notest --installdeps .
# Add user "dockeruser"
ARG UID=1000
ARG GID=1000
RUN groupadd -g "${GID}" dockeruser \
&& useradd --create-home --no-log-init -u "${UID}" -g "${GID}" dockeruser
# To change default user from root -> dockeruser
#USER dockeruser
# Get back to entry dir
WORKDIR /usr/share/beacon-ri/