@@ -231,7 +231,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
231231 .run ("mkdir" , "app" )
232232 .workDir ("/app" )
233233 .run ("curl" , "-sSL" , "https://install.python-poetry.org" , "--output" , "/app/poetry.py" )
234- .run ("python3" , "/app/poetry.py" )
234+ // Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a
235+ // newer version of poetry with python 3.8 will result in an error.
236+ .run ("python3" , "/app/poetry.py" , "--version" , "1.8.5" )
235237 .env ("PATH" , "${PATH}:/root/.local/bin" )
236238 .entryPoint ("/bin/sh -c \" while true; do sleep 30; done;\" " )
237239 .expose (5005 )
@@ -247,7 +249,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
247249 .run ("mkdir" , "app" )
248250 .workDir ("/app" )
249251 .run ("curl" , "-sSL" , "https://install.python-poetry.org" , "--output" , "/app/poetry.py" )
250- .run ("python3" , "/app/poetry.py" )
252+ // Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a
253+ // newer version of poetry with python 3.8 will result in an error.
254+ .run ("python3" , "/app/poetry.py" , "--version" , "1.8.5" )
251255 .env ("PATH" , "${PATH}:/root/.local/bin" )
252256 .entryPoint ("/bin/sh -c \" while true; do sleep 30; done;\" " )
253257 ).build ()));
0 commit comments