-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
36 lines (30 loc) · 827 Bytes
/
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
# Use the latest Debian image
FROM debian:latest
# Set environment variable for non-interactive installs
ENV DEBIAN_FRONTEND=noninteractive
# Update the package list and install required packages
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
jq \
aria2 \
pv \
openssl \
curl \
git \
wget \
unzip \
ffmpeg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Create a virtual environment and install Python packages inside it.
RUN python3 -m venv /app/venv
RUN /app/venv/bin/pip install --upgrade pip setuptools wheel \
&& /app/venv/bin/pip install telethon speedtest-cli pycryptodome docopt
# Set working directory
WORKDIR /app
RUN chmod 777 /app
# Copy all files to the workdir
COPY . .
# Default command
CMD ["bash","tgbot.sh"]