DevOps/Kubernetes/Dockerfile

14 lines
342 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM Ubuntu # 1.Layer Base Ubuntu Layer
RUN apt-get update && apt-get upgrade -y # 2.Layer Changes in apt packages
RUN pip install flask flask-mysql # 3. Layer Changes in pip packages
COPY . /opt/source-code # 4.Layer Source Code
ENTRYPOINT FLASK_APP=/opt/source-code/app.py flask run # 5.Layer Update Entrypoint