-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (22 loc) · 818 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
31
32
FROM python:3.6.10-slim
# RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
# RUN apt-get install -y python3-pip python3-dev
LABEL Author="Vinay Kornapalli"
ENV FLASK_APP="pysoul/api/server.py"
ENV FLASK_ENV="development"
WORKDIR /pysoul-docker
COPY requirements.txt /pysoul-docker/requirements.txt
RUN pip install -r /pysoul-docker/requirements.txt
COPY /pysoul /pysoul-docker/pysoul
# COPY /packs /pysoul-docker/
COPY model.h5 /pysoul-docker/
COPY setup.py /pysoul-docker/
COPY /input /pysoul-docker/input
# RUN pip install --upgrade pip
# RUN pip3 install --upgrade pip
# RUN pip3 install virtualenv
# RUN virtualenv packs
# RUN /bin/bash -c "source /pysoul-docker/packs/bin/activate"
RUN pip install --editable /pysoul-docker/
EXPOSE 80
CMD ["python","./pysoul/api/server.py"]