Skip to content

Instantly share code, notes, and snippets.

@visualjeff
Created May 28, 2015 18:50
Show Gist options
  • Save visualjeff/47b09388d4013629c91e to your computer and use it in GitHub Desktop.
Save visualjeff/47b09388d4013629c91e to your computer and use it in GitHub Desktop.
Dockerfile snippet for debian package updates
//Only for Ubuntu
//ENV DEBIAN_FRONTEND noninteractive
RUN /* apt-key adv --keyserver URL_HERE --recv-keys KEY_HERE && */ \
/* echo 'deb URL_HERE trusty main' >> /etc/apt/sources.list && */ \
apt-get update && \
apt-get -yq install \
curl \
...
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment