-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (43 loc) · 1.24 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
# Production image
FROM alpine:3.10.5
# install goodies
RUN apk add --no-cache \
bash \
bash-doc \
bash-completion \
curl \
ffmpeg \
git \
jq \
libwebp \
libwebp-tools \
make \
openssh \
parallel \
python3 \
rsync && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
\
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade "git+https://github.com/ytdl-org/youtube-dl.git" gallery-dl bs4
# install slack
ARG SLKVERS=0.18.0
RUN cd /tmp && \
curl -fsSL -o slack.tar.gz https://github.com/rockymadden/slack-cli/archive/v${SLKVERS}.tar.gz && \
tar -xvzf slack.tar.gz && \
cd slack-cli-${SLKVERS} && \
make install bindir='/usr/local/bin' etcdir='/usr/etc' && \
rm -rf /tmp/*
# setup rc file
COPY root/ /root/
# link ytb2slk executable
RUN chmod +x /root/*.sh && \
ln /root/scrp2slk.sh /usr/bin/scrp2slk && \
ln /root/ytb2slk.sh /usr/bin/ytb2slk && \
ln /root/insta2slk.sh /usr/bin/insta2slk && \
ln /root/slkup.sh /usr/bin/slkup && \
ln /root/monitdir.sh /usr/bin/monitdir
# create work dir
WORKDIR /home/hckr
CMD ["/bin/bash"]