Skip to content
Snippets Groups Projects
Dockerfile 508 B

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 \     
    flask_mqtt \
    gunicorn \
    --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"]