File tree Expand file tree Collapse file tree 3 files changed +28
-8
lines changed
Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 1- # version 0.0.1
2- # docker-version 0.6 .6
1+ # version 0.0.2
2+ # docker-version 0.7 .6
33FROM ubuntu:12.04
44MAINTAINER Jim Myhrberg "contact@jimeh.me"
55
6- # Make sure the package repository is up to date.
7- RUN echo "deb http://archive.ubuntu.com/ubuntu precise-backports universe" >> /etc/apt/sources.list
8- RUN apt-get update
9-
10- # Let's do this...
11- RUN apt-get install -y znc/precise-backports znc-dbg/precise-backports znc-dev/precise-backports znc-extra/precise-backports znc-perl/precise-backports znc-python/precise-backports znc-tcl/precise-backports && apt-get clean
6+ # We use a bootstrap script to avoid having temporary cache files and build
7+ # dependencies being committed and included into the docker image.
8+ ADD bootstrap.sh /tmp/
9+ RUN chmod +x /tmp/bootstrap.sh && /tmp/bootstrap.sh
1210
1311RUN useradd znc
1412ADD start-znc /usr/local/bin/
1513ADD znc.conf.default /src/
14+ RUN chmod 644 /src/znc.conf.default
1615
1716USER znc
1817EXPOSE 6667
Original file line number Diff line number Diff line change 1+ build :
2+ docker build -t ${USER} /znc .
3+
4+ push : build
5+ docker push ${USER} /znc
6+
7+ .PHONY : default
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Install
4+ apt-get install -y python-software-properties
5+ add-apt-repository ppa:teward/znc
6+ apt-get update
7+ apt-get install -y znc znc-dbg znc-dev znc-perl znc-python znc-tcl
8+ apt-get install -y znc znc-dbg znc-dev znc-extra znc-perl znc-python znc-tcl
9+
10+
11+ # Clean up
12+ apt-get remove -y python-software-properties
13+ apt-get autoremove -y
14+ apt-get clean
You can’t perform that action at this time.
0 commit comments