-
Notifications
You must be signed in to change notification settings - Fork 461
adding python313 dockerfile locally #4611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
adding python313 dockerfile locally #4611
Conversation
{ | ||
switch (imageName) | ||
{ | ||
case "local/python3.13-buildenv": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use the const here: LinuxPython313ImageAmd64
// creating temp folder for Dockerfile | ||
string imageTag = dockerImage.Replace("local/", string.Empty).Replace(":", "-"); | ||
string tempDir = Path.Combine(Path.GetTempPath(), $"{imageTag}-docker"); | ||
Directory.CreateDirectory(tempDir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use CreateDirectory
from FileSystemHelpers
return imageName.StartsWith("local/", StringComparison.OrdinalIgnoreCase); | ||
} | ||
|
||
private static Task<string> GetDockerfileForImage(string imageName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use GetDockerInitFileContent
instead? And update
case 13:
return StaticResources.DockerfilePython313;
to
case 13:
return StaticResources.DockerfilePython313buildenv;
Issue describing the changes in this PR
resolves #issue_for_this_pr
Pull request checklist
release_notes.md
Additional information
Additional PR information