forked from chrisPiemonte/eaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 909 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
33
34
35
# FROM python:3.7.2-stretch
# RUN apt-get update -y
# RUN apt-get install -y apache2-dev
# RUN pip install redisai numpy flask flask-cors ml2rt
# RUN git clone https://github.com/chrisPiemonte/lucaaas.git
# ADD . /lucaaas/
# WORKDIR /lucaaas
# RUN pip install -r requirements.txt
# EXPOSE 5000
# ENTRYPOINT [ "flask" ]
# CMD gunicorn --bind 0.0.0.0:$PORT wsgi
# CMD [ "run", "-h", "0.0.0.0", "--port", "5000"]
#Grab the latest alpine image
# FROM alpine:latest
FROM python:3.7-stretch
RUN apt-get update -y
RUN apt-get install -y apache2-dev
# Install python and pip
# RUN apk add --no-cache --update python3 py3-pip bash
ADD . /lucaaas/
WORKDIR /lucaaas
# Install dependencies
# RUN pip3 install --no-cache-dir -q -r requirements.txt
RUN pip install -r requirements.txt
# Run the app. CMD is required to run on Heroku
# $PORT is set by Heroku
CMD gunicorn --bind 0.0.0.0:$PORT wsgi