ThisMyHost / Dockerfile
ApaCu's picture
Update Dockerfile
af1f832 verified
raw
history blame contribute delete
974 Bytes
# Gunakan image dasar Ubuntu 22.04
FROM ubuntu:22.04
# Set noninteractive frontend untuk menghindari prompt saat instalasi
ENV DEBIAN_FRONTEND=noninteractive
# Gabungkan semua instalasi apt-get dalam satu layer untuk efisiensi
# dan bersihkan cache setelahnya untuk memperkecil ukuran image.
RUN apt-get update && \
apt-get install -y \
# Dependensi Tmate & SSH
tmate \
ssh \
openssh-client \
# Utilitas umum
curl \
wget \
screen \
tmux \
unzip \
zip \
procps \
ffmpeg \
nano \
build-essential \
git \
# Dependensi Python & Node.js
python3 \
python3-pip \
python2 \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Sekarang, setelah pip terinstal, gunakan pip untuk menginstal library Python
RUN pip3 install requests
# Atur direktori kerja
WORKDIR /app
# Salin file 'loader' app.py
COPY app.py .
# Perintah untuk menjalankan loader dengan python3
CMD ["python3", "app.py"]