# start with base image containing python
FROM python  

# extend python with flask, flask_restful, and redis libraries
RUN pip install flask flask_restful redis  

# set working folder on image to "/src" and copy app.py there 
WORKDIR /src
COPY ./app.py .

# this container will be listening on port 5000 (default port for Flask web services)
EXPOSE 5000

# tell Flask to run app.py at startup, and
# set default container command to "flask run"
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
CMD ["flask", "run"]
