Skip to content

Instantly share code, notes, and snippets.

@hempnall
Created July 22, 2016 07:11
Show Gist options
  • Save hempnall/130fbfdf36d0982250ab73e2683ae5a3 to your computer and use it in GitHub Desktop.
Save hempnall/130fbfdf36d0982250ab73e2683ae5a3 to your computer and use it in GitHub Desktop.
setting up an apt-get server in a a dockerfile
FROM ubuntu:16.04
MAINTAINER jxy
RUN apt-get -y update && apt-get install -y dpkg-dev
COPY usr/share/xyz/debs /debs
WORKDIR /debs
RUN dpkg-scanpackages -m . | gzip -c > Packages.gz
RUN echo "deb [trusted=yes] file:///debs ./" > /etc/apt/sources.list.d/xyz.list
RUN apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment