@@ -231,7 +231,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
231
231
.run ("mkdir" , "app" )
232
232
.workDir ("/app" )
233
233
.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" )
235
237
.env ("PATH" , "${PATH}:/root/.local/bin" )
236
238
.entryPoint ("/bin/sh -c \" while true; do sleep 30; done;\" " )
237
239
.expose (5005 )
@@ -247,7 +249,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
247
249
.run ("mkdir" , "app" )
248
250
.workDir ("/app" )
249
251
.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" )
251
255
.env ("PATH" , "${PATH}:/root/.local/bin" )
252
256
.entryPoint ("/bin/sh -c \" while true; do sleep 30; done;\" " )
253
257
).build ()));
0 commit comments