-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (44 loc) · 1.23 KB
/
Copy pathDockerfile
File metadata and controls
52 lines (44 loc) · 1.23 KB
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
# Production image
FROM ubuntu:24.04
# Set environment variables to non-interactive mode to avoid prompts
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
ffmpeg \
gcc \
git \
jq \
python3-pip \
rsync \
make \
openssh-client \
parallel \
webp && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
ln -sf python3 /usr/bin/python && \
ln -sf pip3 /usr/bin/pip
RUN pip install --no-cache-dir --upgrade --break-system-packages \
bs4 \
gallery-dl \
yt-dlp
# Install slack CLI
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 directory
WORKDIR /home/hckr
CMD ["/bin/bash"]