Created
April 6, 2022 20:58
-
-
Save Aposhian/bc8a0549ea25de92fc74b3965010c629 to your computer and use it in GitHub Desktop.
Pythonfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#syntax=docker/dockerfile:1.4 | |
FROM ubuntu | |
RUN apt-get update && apt-get install -y python3 | |
SHELL ["/usr/bin/python3", "-c"] | |
RUN <<EOF | |
import platform | |
my_os = platform.system() | |
if my_os.lower() == "linux": | |
print("oh yeah") | |
else: | |
print("ah well") | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment