-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
54 lines (48 loc) · 1.75 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
FROM alpine:3.19
MAINTAINER Geo Van O <geo@eggheads.org>
RUN adduser -S eggdrop
# grab su-exec for easy step-down from root
RUN apk add --no-cache 'su-exec>=0.2'
RUN apk add --no-cache tcl bash openssl
RUN apk add --no-cache --virtual egg-deps wget ca-certificates make tar gnupg build-base openssl-dev \
&& wget "https://prdownloads.sourceforge.net/tcl/tcl8.6.12-src.tar.gz" -O tcl8.6.12-src.tar.gz \
&& tar -zxf tcl8.6.12-src.tar.gz \
&& ( cd tcl8.6.12 \
# Fix Tcl UTF Emoji support
&& sed -i "/define TCL_UTF_MAX/c\#define TCL_UTF_MAX 6" generic/tcl.h \
&& cd unix \
&& ./configure \
&& make \
&& make install ) \
&& rm tcl8.6.12-src.tar.gz \
&& rm -rf tcl8.6.12 \
&& wget ftp://ftp.eggheads.org/pub/eggdrop/source/1.9/eggdrop-1.9.5.tar.gz \
&& wget ftp://ftp.eggheads.org/pub/eggdrop/source/1.9/eggdrop-1.9.5.tar.gz.asc \
&& gpg --keyserver keyserver.ubuntu.com --recv-key E01C240484DE7DBE190FE141E7667DE1D1A39AFF \
&& gpg --batch --verify eggdrop-1.9.5.tar.gz.asc eggdrop-1.9.5.tar.gz \
&& command -v gpgconf > /dev/null \
&& gpgconf --kill all \
&& rm eggdrop-1.9.5.tar.gz.asc \
&& tar -zxvf eggdrop-1.9.5.tar.gz \
&& rm eggdrop-1.9.5.tar.gz \
&& ( cd eggdrop-1.9.5 \
&& ./configure \
&& make config \
&& make \
&& make install DEST=/home/eggdrop/eggdrop ) \
&& rm -rf eggdrop-1.9.5 \
&& mkdir /home/eggdrop/eggdrop/data \
&& chown -R eggdrop /home/eggdrop/eggdrop \
&& apk del egg-deps
ENV NICK=""
ENV SERVER=""
ENV LISTEN="3333"
ENV OWNER=""
ENV USERFILE="eggdrop.user"
ENV CHANFILE="eggdrop.chan"
WORKDIR /home/eggdrop/eggdrop
EXPOSE 3333
COPY entrypoint.sh /home/eggdrop/eggdrop
COPY docker.tcl /home/eggdrop/eggdrop/scripts/
ENTRYPOINT ["/home/eggdrop/eggdrop/entrypoint.sh"]
CMD ["eggdrop.conf"]