-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
30 lines (25 loc) · 1.13 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
29
ARG BASE_IMAGE=sinzlab/pytorch:v3.8-torch1.7.0-cuda11.0-dj0.12.7
# Perform multistage build to pull private repo without leaving behind
# private information (e.g. SSH key, Git token)
FROM ${BASE_IMAGE} as base
ARG DEV_SOURCE=sinzlab
ARG GITHUB_USER
ARG GITHUB_TOKEN
WORKDIR /src
# Use git credential-store to specify username and pass to use for pulling repo
RUN git config --global credential.helper store &&\
echo https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com >> ~/.git-credentials
RUN git clone -b readout_position_regularizer https://github.com/KonstantinWilleke/neuralpredictors &&\
git clone https://github.com/sinzlab/nnfabrik &&\
git clone -b express_ensemble_loading https://github.com/KonstantinWilleke/mei &&\
git clone https://github.com/sinzlab/data_port &&\
git clone https://github.com/KonstantinWilleke/nexport.git
FROM ${BASE_IMAGE}
COPY --from=base /src /src
ADD . /src/nndichromacy
RUN pip install -e /src/neuralpredictors &&\
pip install -e /src/nnfabrik &&\
pip install -e /src/nndichromacy &&\
pip install -e /src/mei &&\
pip install -e /src/data_port &&\
pip install -e /src/nexport