Skip to content

Instantly share code, notes, and snippets.

@zerlgi
Created June 20, 2014 08:03
Show Gist options
  • Save zerlgi/c21b3743327f01835d80 to your computer and use it in GitHub Desktop.
Save zerlgi/c21b3743327f01835d80 to your computer and use it in GitHub Desktop.
# Dockerfile snippets that are useful to me. Many bits obtained from others.
FROM ubuntu:14.04
MAINTAINER Andrew Mac <zerlgi@gmail.com>
RUN echo 'Acquire::http::Proxy "http://172.17.42.1:3142"; ' > /etc/apt/apt.conf
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty-security main universe" >> /etc/apt/sources.list
#RUN echo "deb http://archive.ubuntu.com/ubuntu trusty-updates main universe" >> /etc/apt/sources.list
RUN apt-get -qq update
#RUN apt-get -qqy install SOME APP
#RUN bwm-ng -T sum -t 5000
## Small trick to Install fuse because of container permission issue.
## http://blogs.nuxeo.com/development/2014/01/docker-containers-nuxeo-part-1/
## https://github.com/dotcloud/docker/issues/1916
RUN apt-get -y install fuse || true
RUN rm -rf /var/lib/dpkg/info/fuse.postinst
RUN apt-get -y install fuse || true
# CleanUP
# Set locale (fix the locale warnings)
RUN localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 || :
# CleanUP unneccessary files
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment