Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions windows-container-samples/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ RUN powershell.exe -Command \
Start-Process c:\python-3.10.0.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait ; \
Remove-Item c:\python-3.10.0.exe -Force

RUN echo print("Hello World!") > c:\hello.py

CMD ["py", "c:/hello.py"]
CMD ["py", "-m" ,"__hello__"]
9 changes: 3 additions & 6 deletions windows-container-samples/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ All container sample source code is kept under the Vitualization-Documentation g
docker build -t python:latest .
5. To run the newly built container, run the docker run command.
docker run -it python
6. This will enter you into the container and show you "Hello World."
7. The python version should display. Use the exit command to exit the container.
6. This will enter you into the container and show you "Hello world!"
7. The container exits successfully.
## Dockerfile Details:
```
# This dockerfile utilizes components licensed by their respective owners/authors.
Expand All @@ -52,8 +52,5 @@ RUN powershell.exe -Command \
Start-Process c:\python-3.10.0.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait ; \
Remove-Item c:\python-3.10.0.exe -Force


RUN echo print("Hello World!") > c:\hello.py

CMD ["py", "c:/hello.py"]
CMD ["py", "-m" ,"__hello__"]
```