Skip to content

Instantly share code, notes, and snippets.

@nagos
Last active February 10, 2023 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagos/76cdf6b06d4ca30c976184084cb14bf8 to your computer and use it in GitHub Desktop.
Save nagos/76cdf6b06d4ca30c976184084cb14bf8 to your computer and use it in GitHub Desktop.
Python docker starter package

Build

docker build -t python-starter .

Run

docker run -it --rm python-starter
FROM python:3
WORKDIR /usr/src/app
# COPY requirements.txt ./
# RUN pip install --no-cache-dir -r requirements.txt
COPY hello.py .
CMD ["python", "./hello.py"]
print("Hello world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment