-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.gbsfm-ircbot
More file actions
22 lines (19 loc) · 905 Bytes
/
Dockerfile.gbsfm-ircbot
File metadata and controls
22 lines (19 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:latest
ARG DRONE_IRC_GIT
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash perl git openssh-client supercronic build-base wget perl-app-cpanminus perl-dev mariadb-dev perl-lwp-protocol-https curl && \
mkdir /socks-irc && \
git config --global http.sslVerify false && \
git config --global user.email "ircbot@example.com" && \
git config --global user.name "IRC Bot" && \
cd / && \
git clone https://git.hemma.lokal/scuttle/socks-perl.git && \
cpanm POE::Component::IRC && \
cpanm LWP && \
cpanm DBI && \
cpanm DBD::mysql
COPY scripts/ircbot_crontab /root/crontab
COPY scripts/ircbot_entrypoint.sh /root/entrypoint.sh
RUN sed -i "s/gituser:gitpassword/$DRONE_IRC_GIT/g" /root/crontab
ENTRYPOINT ["/root/entrypoint.sh"]