-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
73 lines (51 loc) · 1.7 KB
/
Dockerfile
File metadata and controls
73 lines (51 loc) · 1.7 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
62
63
64
65
66
67
68
69
70
71
ARG UBUNTU_RELEASE=22.04
FROM --platform=linux/amd64 condaforge/mambaforge:latest
WORKDIR /app
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
MAINTAINER Laurent Gautier <lgautier@gmail.com>
ARG DEBIAN_FRONTEND=noninteractive
ENV CRAN_MIRROR=https://cloud.r-project.org \
CRAN_MIRROR_TAG=-cran40
ARG RPY2_VERSION=RELEASE_3_5_6
ARG RPY2_CFFI_MODE=BOTH
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update
RUN apt-get -y install g++
RUN apt-get update --yes
RUN apt-get upgrade --yes
RUN apt install -y --no-install-recommends \
software-properties-common \
dirmngr \
lsb-release \
wget
RUN wget -qO- "${CRAN_MIRROR}"/bin/linux/ubuntu/marutter_pubkey.asc \
| tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
RUN add-apt-repository "deb ${CRAN_MIRROR}/bin/linux/ubuntu/ $(lsb_release -c -s)${CRAN_MIRROR_TAG}/"
RUN apt-get update -qq
RUN apt-get install -y \
aptdaemon \
ed \
git \
mercurial \
libcairo-dev \
libedit-dev \
libnlopt-dev \
libxml2-dev
RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
RUN apt-get install -y r-base \
r-base-dev
COPY env.yml /app
RUN conda env create -f env.yml
RUN rm -rf /var/lib/apt/lists/*
# Activate the Conda environment
SHELL ["conda", "run", "-n", "tool_ui", "/bin/bash", "-c"]
ENV PATH=$PATH:/opt/java/jdk-15.0.2/bin
COPY . /app
RUN chmod +x -R /app/
RUN wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz -O go.tar.gz
RUN tar -xzvf go.tar.gz -C /usr/local
ENV PATH=$PATH:/usr/local/go/bin
# RUN go version
RUN go install github.com/hscells/bigbro/cmd/bigbro@latest
ENV PATH=/root/go/bin:$PATH
RUN chmod +rx /app/src/rankers/modules/ranklib/run-LTR-model.sh