Cheatsheet Pages / Docker Cheatsheet
A minimal working Dockerfile — a Python app, built and run
You want one complete, small example you can copy and adapt: image definition, build, run.
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["python", "app.py"]
docker build -t hello-py:1.0 . && docker run -d --name hello-py -p 8000:8000 hello-py:1.0
