-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·38 lines (32 loc) · 1007 Bytes
/
Dockerfile
File metadata and controls
executable file
·38 lines (32 loc) · 1007 Bytes
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
FROM mambaorg/micromamba:1.5.8-noble
LABEL \
author="Jacob Munro" \
description="Container for Cavalier" \
maintainer="Bahlo Lab"
# install os deps
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
procps \
xvfb \
xauth \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# install env with micromamba
COPY environment.yml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml \
&& micromamba clean --all --yes
# create igv.sh
RUN cp /opt/conda/bin/igv /opt/conda/bin/igv.sh \
&& echo "PATH=/opt/conda/bin:${PATH}" >> \
/opt/conda/lib/R/etc/Renviron
# Install cavalier R package and build caches
COPY . /tmp/cavalier
RUN /opt/conda/bin/R --slave --vanilla -e "\
devtools::install(pkg = '/tmp/cavalier', force = TRUE, upgrade = 'never') \
"
ENV PATH="/opt/conda/bin:${PATH}" \
TZ=Etc/UTC \
R_HOME=/opt/conda/lib/R/ \
R_ENVIRON=/opt/conda/lib/R/etc/Renviron \
R_LIBS_USER=/opt/conda/lib/R/site-library