Pinning your first container
# Base this Dockerfile on Ubuntu 20.04
FROM ubuntu:20.04
# Don't prompt us when installing packages
ARG DEBIAN_FRONTEND=noninteractive
# Install some OS level packages
RUN apt update && apt install -y curl software-properties-common
# We need a newer Python version, grab it from Deadsnakes PPA
RUN add-apt-repository -y ppa:deadsnakes/ppa && \
apt update && \
apt install -y python3.9 python3.9-distutils
# Install pip (the Python package manager)
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.9 get-pip.py
# Install a Python package through pip
RUN pip3 install onnx==1.14.0Signing up for StableBuild

Pinning the base image


Pinning packages from the Ubuntu package registry and other PPAs


Pinning arbitrary files from the internet


Pinning Python packages

Tips & tricks
Traffic logs

Keep your keys private
Last updated