Skip to content

Instantly share code, notes, and snippets.

View michaeloliverx's full-sized avatar
🏠
Working from home

Michael Oliver michaeloliverx

🏠
Working from home
View GitHub Profile
@michaeloliverx
michaeloliverx / Dockerfile
Created February 27, 2020 19:11
Example Dockerfile for Python Poetry utilising multi-stage builds
# `python-base` sets up all our shared environment variables
FROM python:3.8.1-slim as python-base
# python
ENV PYTHONUNBUFFERED=1 \
# prevents python creating .pyc files
PYTHONDONTWRITEBYTECODE=1 \
\
# pip
PIP_NO_CACHE_DIR=off \