-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
41 lines (34 loc) · 1.38 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
FROM alpine:3.4
MAINTAINER Geo Van O <[email protected]>
RUN adduser -S eggdrop
# grab su-exec for easy step-down from root
RUN apk add --no-cache 'su-exec>=0.2'
ENV EGGDROP_SHA256 40c3e41cece00b3e3741bd1cd92d8e8bf3fd0adee2cad54bcb04cfc26f38f4a0
ENV EGGDROP_COMMIT 1753372f439849ccc4e6b692f90991282b6daf28
RUN apk add --no-cache tcl tcl-dev wget ca-certificates make tar gpgme bash build-base \
&& wget https://github.com/eggheads/eggdrop/archive/1753372f439849ccc4e6b692f90991282b6daf28.tar.gz -O develop.tar.gz\
&& sha256sum develop.tar.gz \
&& echo "$EGGDROP_SHA256 develop.tar.gz" | sha256sum -c - \
&& tar -zxvf develop.tar.gz \
&& rm develop.tar.gz \
&& ( cd eggdrop-$EGGDROP_COMMIT \
&& ./configure --with-tclinc=/usr/include/tcl8.6/tcl.h --with-tcllib=/usr/lib/x86_64-linux-gnu/libtcl8.6.so \
&& make config \
&& make \
&& make install DEST=/home/eggdrop/eggdrop ) \
&& rm -rf eggdrop-develop \
&& mkdir /home/eggdrop/eggdrop/data \
&& chown -R eggdrop /home/eggdrop/eggdrop \
&& apk del tcl-dev wget ca-certificates make tar gpgme build-base
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"]