Dockerfile 508 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14

FROM debian:stretch 
    
# Python Packages 
RUN apt-get update && apt-get install -y \ 	
    python3 \ 	
    python3-pip 

# Upgrade pip    
RUN pip3 install --upgrade pip 

# pip Packages
RUN pip3 install \     
    flask==1.0.2 \     
15
    flask_mqtt \
Christian Elberfeld's avatar
Christian Elberfeld committed
16
    gunicorn \
17 18 19 20 21 22 23 24 25 26 27 28 29
    --upgrade 
    
# start Script 
COPY entrypoint_dev.sh /opt/entrypoint_dev.sh 
COPY entrypoint_prod.sh /opt/entrypoint_prod.sh 
RUN chmod +x /opt/entrypoint* 

EXPOSE 5000
VOLUME ["/opt/warpapi"] 

CMD ["/opt/entrypoint_prod.sh"]