Created
July 22, 2016 07:11
-
-
Save hempnall/130fbfdf36d0982250ab73e2683ae5a3 to your computer and use it in GitHub Desktop.
setting up an apt-get server in a a dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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