Skip to content

Commit 00fbafc

Browse files
committed
Fix issue #3 and generally update project
1 parent 5063475 commit 00fbafc

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
# version 0.0.1
2-
# docker-version 0.6.6
1+
# version 0.0.2
2+
# docker-version 0.7.6
33
FROM ubuntu:12.04
44
MAINTAINER 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

1311
RUN useradd znc
1412
ADD start-znc /usr/local/bin/
1513
ADD znc.conf.default /src/
14+
RUN chmod 644 /src/znc.conf.default
1615

1716
USER znc
1817
EXPOSE 6667

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build:
2+
docker build -t ${USER}/znc .
3+
4+
push: build
5+
docker push ${USER}/znc
6+
7+
.PHONY: default

bootstrap.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)