0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 16:50:45 -05:00
build/Dockerfile.node
Refringe 547e8ac734
Updates!
- Nightly builds should happen at 3pm ET
- The Determine-Build-Type step happens earlier in the build process now & it's based on the passed tag instead of the current commits tag.
- Torrent files are only created for stable releases.
- Nightly builds are now cleaned from external sources
- External sources now delete nightly, debug, and bleeding releases older than 14 days.
- Updates node environment to v20.11.1
2024-03-14 17:27:16 -04:00

39 lines
1.4 KiB
Docker

# 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)
# - python3 (for running python scripts)
# - python3-pip (for installing python packages)
# - python3-venv (for creating python virtual environments)
RUN apt-get update && \
apt-get install -y wget git git-lfs zstd tree jq p7zip-full sshpass python3 python3-pip python3-venv
# 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 && \
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/*