<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Poetry on nanmu42</title><link>https://nanmu.me/en/tags/poetry/</link><description>Recent content in Poetry on nanmu42</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>i@nanmu.me (nanmu42)</managingEditor><webMaster>i@nanmu.me (nanmu42)</webMaster><copyright>Copyright &amp;copy;{year} LI Zhennan</copyright><lastBuildDate>Sun, 15 Oct 2023 15:00:00 +0800</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><sy:updateFrequency>weekly</sy:updateFrequency><atom:link href="https://nanmu.me/en/tags/poetry/index.xml" rel="self" type="application/rss+xml"/><item><title>Quick Dockerfile for Python Poetry Projects</title><link>https://nanmu.me/en/posts/2023/quick-dockerfile-for-python-poetry-projects/</link><pubDate>Sun, 15 Oct 2023 15:00:00 +0800</pubDate><author>i@nanmu.me (nanmu42)</author><atom:modified>Tue, 06 Aug 2024 10:39:07 +0800</atom:modified><guid>https://nanmu.me/en/posts/2023/quick-dockerfile-for-python-poetry-projects/</guid><description>Goal Both Poetry and Python work out-of-the-box, dependency-wise especially. No need for entrypoint.sh and stuff. Two images: dev and production. Dockerfile Say we have the following project structure:
. ├── Dockerfile ├── pyproject.toml ├── poetry.lock ├── scripts └── my_awesome_ai_project Copy the following content as your Dockerfile&amp;rsquo;s start point. The usage is in the next section if in need.
Also, a Github Gist is available.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 # syntax=docker/dockerfile:1# Keep this syntax directive!</description><dc:creator>nanmu42</dc:creator><category>Docker</category><category>Python</category><category>Poetry</category><category>Notes and Discussions</category></item></channel></rss>