forked from HelikarLab/COMO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 1.29 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
FROM jupyter/r-notebook:latest as builder
COPY environment.yaml "${HOME}/environment.yaml"
COPY --chown=1000:100 main "${HOME}/main"
# Install python-related items
# Remove "python" from the pinned file so we can install our own version
RUN sed -i '/^python/d' /opt/conda/conda-meta/pinned && \
echo "auto_activate_base: true" >> "${HOME}/.condarc" && \
jupyter trust "${HOME}/main/COMO.ipynb" && \
echo "c.ServerApp.ip = '0.0.0.0'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
echo "c.ServerApp.root_dir = '${HOME}/main'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
echo "c.ServerApp.token = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
echo "c.ServerApp.password = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" && \
conda config --quiet --add channels conda-forge && \
conda config --quiet --add channels bioconda && \
conda config --quiet --add channels r && \
rm -rf "${HOME}/main/tests" # Remove tests, they are not required for running COMO
# Update base environment
RUN ls "${HOME}" && \
mamba env update --name=base --file="${HOME}/environment.yaml" && \
R -e "devtools::install_github('babessell1/zFPKM')" && \
pip cache purge && \
mamba clean --all --yes
EXPOSE 8888
VOLUME /home/joyvan/main/data/local_files