-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (11 loc) · 786 Bytes
/
Dockerfile
File metadata and controls
15 lines (11 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This dockerfile utilizes components licensed by their respective owners/authors.
# Prior to utilizing this file or resulting images please review the respective licenses at: https://docs.python.org/3/license.html
FROM mcr.microsoft.com/windows/servercore:ltsc2022
LABEL Description="Python" Vendor="Python Software Foundation" Version="3.10.0"
RUN powershell.exe -Command \
$ErrorActionPreference = 'Stop'; \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
wget https://www.python.org/ftp/python/3.10.0/python-3.10.0.exe -OutFile c:\python-3.10.0.exe ; \
Start-Process c:\python-3.10.0.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait ; \
Remove-Item c:\python-3.10.0.exe -Force
CMD ["py", "-m" ,"__hello__"]