-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (23 loc) · 873 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 hdgigante/opencv:fedora-opencv4
# If you prefer miniconda:
#FROM continuumio/miniconda3
LABEL Name=plate_rec Version=0.0.1
EXPOSE 5000
WORKDIR /app
ADD . /app
COPY ./pip.conf /etc/pip.conf
# Using pip:
RUN python3 -m pip install -r requirements.txt
CMD ["python3", "image_tfserving.py"]
# Using pipenv:
#RUN python3 -m pip install pipenv
#RUN pipenv install --ignore-pipfile
#CMD ["pipenv", "run", "python3", "-m", "plate_rec"]
# 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 plate_rec"