-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (20 loc) · 876 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
ARG BASE_CONTAINER=jupyter/scipy-notebook:python-3.10.8
FROM $BASE_CONTAINER
LABEL author="Tamas Spisak"
# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
RUN apt-get update && \
apt-get install -y datalad
USER ${NB_UID}
RUN git config --global --add user.name BWASdemo
RUN git config --global --add user.email [email protected]
COPY --chown=${NB_UID}:${NB_GID} requirements.txt ${HOME}/bwas/requirements.txt
RUN pip install -r ${HOME}/bwas/requirements.txt
#RUN mkdir ${HOME}/.ssh
#RUN ssh-keyscan -t rsa github.com >> ${HOME}/.ssh/known_hosts
RUN mkdir ${HOME}/bwas/hcp_data
COPY --chown=${NB_UID}:${NB_GID} *.ipynb ${HOME}/bwas/
WORKDIR "${HOME}/bwas"
# to start: docker run -it -p 8080:8080 -p 8888:8888 tspisak/bwas:latest jupyter notebook