-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (58 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#Maintainer [email protected]
#ZNC http://znc.in/
#znc image
FROM alpine:3.5
ENV \
ZNC_VERSION=1.6.4 \
Z_DIR=/opt/znc \
TZ=Europe/Ljubljana \
Z_UID=1000 \
Z_GID=1000 \
Z_USER=znc \
Z_GROUP=znc \
Z_LOG_LEVEL=warn \
ZNC_PORT=7000
RUN \
mkdir -p \
${Z_DIR} && \
addgroup -g \
${Z_GID} -S ${Z_GROUP} && \
adduser \
-h ${Z_DIR} \
-g "ZNC system user" \
-G ${Z_GROUP} \
-S -D \
-u ${Z_UID} ${Z_USER}
COPY \
scripts/znc-entrypoint.sh /usr/bin/
RUN \
apk add --no-cache \
openssl tzdata && \
apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
znc znc-extra && \
chown \
-R ${Z_USER}:${Z_GROUP} ${Z_DIR} && \
chmod +x \
/usr/bin/znc-entrypoint.sh
EXPOSE \
${ZNC_PORT}
WORKDIR \
${Z_DIR}
USER \
${Z_USER}
ENTRYPOINT \
["/usr/bin/znc-entrypoint.sh"]
LABEL \
net.sinaptika.maintainer="[email protected]" \
net.sinaptika.name="znc" \
net.sinaptika.branch="master" \
net.sinaptika.from="alpine:3.5" \
c_software_name="ZNC irc bouncer" \
c_software_url="http://znc.in/" \
image.version="0.1" \
date.version="5.5.2017" \
web_interface=true \
web_interface_port=${ZNC_PORT} \
exposed_ports=${ZNC_PORT}\
docker_volumes=${D_DIR}