-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
55 lines (46 loc) · 1.25 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
FROM alpine:3.12
ARG VERSION_EXTRA=""
ARG CMAKEFLAGS="-DVERSION_EXTRA=${VERSION_EXTRA} -DCMAKE_INSTALL_PREFIX=/opt/znc -DWANT_CYRUS=YES -DWANT_PERL=YES -DWANT_PYTHON=YES"
ARG MAKEFLAGS=""
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vcs-url="https://github.com/znc/znc"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.url="https://znc.in"
COPY . /znc-src
RUN set -x \
&& adduser -S znc \
&& addgroup -S znc
RUN apk add --no-cache \
boost \
build-base \
ca-certificates \
cmake \
cyrus-sasl \
gettext \
icu-dev \
libressl-dev \
perl \
python3 \
su-exec \
tini \
tzdata
RUN apk add --no-cache --virtual build-dependencies \
boost-dev \
cyrus-sasl-dev \
perl-dev \
python3-dev \
swig \
&& cd /znc-src \
&& mkdir build && cd build \
&& cmake .. ${CMAKEFLAGS} \
&& make $MAKEFLAGS \
&& make install \
&& apk del build-dependencies \
&& cd / && rm -rf /znc-src
COPY docker/slim/entrypoint.sh /
COPY docker/*/??-*.sh /startup-sequence/
VOLUME /znc-data
ENTRYPOINT ["/entrypoint.sh"]