Skip to content

Instantly share code, notes, and snippets.

@Aposhian
Created April 6, 2022 20:58
Show Gist options
  • Save Aposhian/bc8a0549ea25de92fc74b3965010c629 to your computer and use it in GitHub Desktop.
Save Aposhian/bc8a0549ea25de92fc74b3965010c629 to your computer and use it in GitHub Desktop.
Pythonfile
#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