mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
change znc to alpine
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
aa97d7801b
commit
147fea10ab
|
@ -6,44 +6,51 @@
|
||||||
# -v /volumes/znc:/home/user/.znc \
|
# -v /volumes/znc:/home/user/.znc \
|
||||||
# jess/znc
|
# jess/znc
|
||||||
#
|
#
|
||||||
FROM debian:stretch
|
FROM alpine:latest
|
||||||
MAINTAINER Jessie Frazelle <jess@linux.com>
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
glib \
|
||||||
libdatetime-perl \
|
|
||||||
libglib2.0-0 \
|
|
||||||
libwww-perl \
|
|
||||||
perl \
|
perl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
perl-datetime \
|
||||||
|
perl-libwww
|
||||||
|
|
||||||
ENV HOME /home/user
|
ENV HOME /home/user
|
||||||
RUN useradd --create-home --home-dir $HOME user \
|
RUN adduser -u 1001 -D user \
|
||||||
&& chown -R user:user $HOME
|
&& chown -R user:user $HOME
|
||||||
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
ENV ZNC_VERSION 1.6.4
|
ENV ZNC_VERSION 1.6.4
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN set -x \
|
||||||
build-essential \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
libssl-dev \
|
build-base \
|
||||||
libperl-dev \
|
curl \
|
||||||
' \
|
libressl-dev \
|
||||||
&& set -x \
|
perl-dev \
|
||||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
tar \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
|
||||||
&& curl -sSL "http://znc.in/releases/znc-${ZNC_VERSION}.tar.gz" -o /tmp/znc.tar.gz \
|
&& curl -sSL "http://znc.in/releases/znc-${ZNC_VERSION}.tar.gz" -o /tmp/znc.tar.gz \
|
||||||
&& mkdir -p /usr/src/znc \
|
&& mkdir -p /usr/src/znc \
|
||||||
&& tar -xzf /tmp/znc.tar.gz -C /usr/src/znc --strip-components 1 \
|
&& tar -xzf /tmp/znc.tar.gz -C /usr/src/znc --strip-components 1 \
|
||||||
&& rm /tmp/znc.tar.gz* \
|
&& rm /tmp/znc.tar.gz* \
|
||||||
&& cd /usr/src/znc \
|
&& ( \
|
||||||
|
cd /usr/src/znc \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make -j8 \
|
&& make -j8 \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
) \
|
||||||
&& rm -rf /usr/src/znc \
|
&& rm -rf /usr/src/znc \
|
||||||
&& apt-get purge -y --auto-remove $buildDeps
|
&& runDeps="$( \
|
||||||
|
scanelf --needed --nobanner --recursive /usr \
|
||||||
|
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
|
||||||
|
| sort -u \
|
||||||
|
| xargs -r apk info --installed \
|
||||||
|
| sort -u \
|
||||||
|
)" \
|
||||||
|
&& apk add --no-cache --virtual .irssi-rundeps $runDeps \
|
||||||
|
&& apk del .build-deps
|
||||||
|
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
USER user
|
USER user
|
||||||
|
|
Loading…
Reference in New Issue
Block a user