Diff of /Dockerfile [000000] .. [42b7b1]

Switch to unified view

a b/Dockerfile
1
# base docker image:
2
# make sure you pulled the docker base image: docker pull continuumio/anaconda3:latest
3
FROM continuumio/anaconda3 
4
5
# label the docker image:
6
LABEL Name="lfbnet"  
7
8
# setting proxies if your are behind proxy companies:
9
# kindly refer to: https://docs.docker.com/network/proxy/
10
11
# define working directory inside the docker image:
12
WORKDIR /lfbnet
13
14
# Create the environment:
15
COPY environment.yml .
16
RUN conda env create -f environment.yml
17
18
# Make RUN commands use the new environment:
19
SHELL ["conda", "run", "-n", "myenv", "/bin/bash", "-c"]
20
21
# Copy everything in the current directory into the docker image working directory.
22
# Recommended not to put medical data in the current directory!
23
COPY . /lfbnet
24
25
# Assume requirements.txt was in the current directory, install dependencies that require pip install:
26
RUN pip install --upgrade pip 
27
RUN pip install -r requirements.txt
28
29
# Run the main python code when the container is started:# 
30
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "/lfbnet/test_docker.py"]