-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.node
28 lines (26 loc) · 1.08 KB
/
Dockerfile.node
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
# Use the Node v20.11.1, Debian 12 base image
FROM node:20.11.1-bookworm
# Install necessary tools and dependencies
# - wget (for downloading MegaCMD)
# - git (duh)
# - git-lfs (duh)
# - zstd (caching action dependancy)
# - tree (pretty print build directory structure)
# - jq (working with JSON)
# - p7zip-full (the goat)
# - sshpass (for automated SSH authentication)
# - lftp (for automated SFTP commands)
# - vim-common (for xxd command, for file hash process)
# - rclone (for R2 uploads)
RUN apt-get update && \
apt-get install -y wget git git-lfs zstd tree jq p7zip-full sshpass python3 python3-pip python3-venv vim-common rclone
# 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 && \
wget https://mega.nz/linux/repo/Debian_12/amd64/megacmd-Debian_12_amd64.deb && \
dpkg -i megacmd-Debian_12_amd64.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*