-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (21 loc) · 742 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (21 loc) · 742 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
29
30
31
32
33
FROM continuumio/miniconda3
#create working directory
WORKDIR /merckproject
# copy all files from current working directory to the image container
COPY . /merckproject
# listing all the contents to make sure all files have been copied successfully
RUN ls
#update conda
RUN conda update -n base -c defaults conda
# create enviroment using enviroment.yml
RUN conda env create -f enviroment.yml
#RUN conda create -n env python=3.6
RUN echo "source activate env" > ~/.bashrc
ENV PATH /opt/conda/envs/nlp/bin:$PATH
#Make port 80 available to the world outside this container
ENV PORT 5000
#define the enviroment variable
ENV NAME MerckWorld
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]
#docker run --rm -it -p 5000:5000/tcp testimage:tag6