Dockerizing the python poetry application

video guide for dockerizing the poetry application
poetry new sample-app
poetry add sanic
from sanic import Sanicapp = Sanic("Sample application")def run():    app.run(auto_reload=True, host="0.0.0.0", port=5002)
import sample_app.appsample_app.app.run()
FROM python:3.10RUN mkdir /app2WORKDIR /app2COPY . .# ENV PYTHONPATH=${PYTHONPATH}:${PWD}RUN pip3 install poetryRUN poetry installEXPOSE 5002CMD ["poetry", "run", "app"]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store