# Use Ubuntu 20.04 as the base image
FROM ubuntu:20.04

# Set environment variable to avoid interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive

# Update package lists and install required packages, including lftp and git
RUN apt-get update && \
    apt-get install -y curl zip lftp git && \
    # Install Node.js 18 using the NodeSource repository
    curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
    apt-get install -y nodejs && \
    # Clean up
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Default command to display Node.js version (for verification)
CMD ["node", "--version"]
