-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 704 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 704 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
# Use miniconda as base image
FROM continuumio/miniconda3
# Install jupyternotebook
RUN conda install -y jupyter
# Create new environment from requirements.yaml
COPY requirements.yml .
RUN conda env create -f requirements.yml
# Clone the repo "https://github.com/mijanr/PredEngine" into the docker image
# First create a directory projects at the home directory
RUN mkdir /home/projects
WORKDIR /home/projects
# Clone the repo
RUN git clone https://github.com/mijanr/PredEngine.git
# Activate the environment
RUN echo "source activate pred_models" > ~/.bashrc
ENV PATH /opt/conda/envs/PredEngine/bin:$PATH
# Set the working directory
WORKDIR /home/projects/PredEngine
# Expose the port
EXPOSE 8888