14 lines
342 B
Docker
14 lines
342 B
Docker
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
|
||
|
||
|
||
|
||
|