-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 918 Bytes
/
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
30
# Python support can be specified down to the minor or micro version
# (e.g. 3.6 or 3.6.3).
# OS Support also exists for jessie & stretch (slim and full).
# See https://hub.docker.com/r/library/python/ for all supported Python
# tags from Docker Hub.
FROM python:3.7-stretch
# If you prefer miniconda:
#FROM continuumio/miniconda3
LABEL Name=ax-container Version=0.0.1
EXPOSE 3000
ADD . /.
WORKDIR /app
RUN python3 -m pip install --upgrade pip
# Using pip:
RUN python3 -m pip install -r requirements.txt
RUN python3 -W ignore tests.py
CMD ["python3", "-u", "-W", "ignore", "run.py"]
# Using pipenv:
#RUN python3 -m pip install pipenv
#RUN pipenv install --ignore-pipfile
#CMD ["pipenv", "run", "python3", "-m", "ax-container"]
# Using miniconda (make sure to replace 'myenv' w/ your environment name):
#RUN conda env create -f environment.yml
#CMD /bin/bash -c "source activate myenv && python3 -m ax-container"