2024-03-14 17:27:16 -04:00
|
|
|
# Use the Node v20.11.1, Debian 12 base image
|
|
|
|
FROM node:20.11.1-bookworm
|
2024-03-02 22:29:09 -05:00
|
|
|
|
2024-03-04 21:46:32 -05:00
|
|
|
# Install necessary tools and dependencies
|
2024-03-08 16:01:00 -05:00
|
|
|
# - wget (for downloading MegaCMD)
|
2024-03-04 21:46:32 -05:00
|
|
|
# - git (duh)
|
|
|
|
# - git-lfs (duh)
|
2024-03-06 16:10:05 -05:00
|
|
|
# - zstd (caching action dependancy)
|
2024-03-04 21:46:32 -05:00
|
|
|
# - tree (pretty print build directory structure)
|
2024-03-11 13:25:29 -04:00
|
|
|
# - jq (working with JSON)
|
2024-03-06 15:14:05 -05:00
|
|
|
# - p7zip-full (the goat)
|
2024-03-09 00:29:52 -05:00
|
|
|
# - sshpass (for automated SSH authentication)
|
2024-03-09 14:27:29 -05:00
|
|
|
# - lftp (for automated SFTP commands)
|
2024-03-09 23:15:47 -05:00
|
|
|
# - python3 (for running python scripts)
|
|
|
|
# - python3-pip (for installing python packages)
|
|
|
|
# - python3-venv (for creating python virtual environments)
|
2024-03-02 22:29:09 -05:00
|
|
|
RUN apt-get update && \
|
2024-03-11 13:25:29 -04:00
|
|
|
apt-get install -y wget git git-lfs zstd tree jq p7zip-full sshpass python3 python3-pip python3-venv
|
2024-03-08 16:01:00 -05:00
|
|
|
|
2024-03-09 23:15:47 -05:00
|
|
|
# Create a virtual environment for Python packages
|
|
|
|
RUN python3 -m venv /opt/venv
|
|
|
|
|
|
|
|
# Activate virtual environment and install python applications
|
|
|
|
# - torf-cli (for creating .torrent files)
|
|
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
RUN pip install --upgrade pip && \
|
|
|
|
pip install torf-cli
|
|
|
|
|
|
|
|
# MegaCMD (for uploading to Mega.nz)
|
|
|
|
# - libc-ares2 (MegaCMD dependancy)
|
|
|
|
# - libmediainfo0v5 (MegaCMD dependancy)
|
|
|
|
# - libpcrecpp0v5 (MegaCMD dependancy)
|
|
|
|
# - libzen0v5 (MegaCMD dependancy)
|
|
|
|
RUN apt-get install -y libc-ares2 libmediainfo0v5 libpcrecpp0v5 libzen0v5 && \
|
2024-03-08 16:01:00 -05:00
|
|
|
wget https://mega.nz/linux/repo/Debian_12/amd64/megacmd-Debian_12_amd64.deb && \
|
|
|
|
dpkg -i megacmd-Debian_12_amd64.deb && \
|
2024-03-06 16:10:05 -05:00
|
|
|
apt-get clean && \
|
2024-03-02 22:29:09 -05:00
|
|
|
rm -rf /var/lib/apt/lists/*
|