-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 789 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
# Use the official image as a parent image.
FROM python:3.7
ARG PROJ_REPO=https://github.com/dli-stats/distributed_cox.git
ARG GIT_TAG=repro
ARG DATA_REPO=https://github.com/dli-stats/distributed_cox_paper_simudata.git
ENV REPO_DIR=/distributed_cox
ENV DATA_DIR=/cox-data
ENV DATA_NPZ_DIR=/distributed_cox/npz_data
# Clone paper simulated data
RUN git clone ${DATA_REPO} ${DATA_DIR}
# Prepare repo code
WORKDIR ${REPO_DIR}
RUN git clone --depth=1 --branch ${GIT_TAG} ${PROJ_REPO} ${REPO_DIR}
# Install dependencies
RUN pip install -r requirements.txt
RUN pip install -e .
# Preprocess the raw csv data into .npz files
RUN mkdir -p $DATA_NPZ_DIR
RUN python scripts/distributed/convert_simulated_data.py \
convert_from_csv \
"${DATA_DIR}/dat_std_simulated.csv" \
${DATA_NPZ_DIR}