Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/megacmd-docker. MegaCMD Docker Container for Red Hat Linux
Something went wrong. Try again.
megacmd-docker Dockerfile
12345678910111213141516171819202122232425262728293031# Use Red Hat Universal Base Image 8 as the base imageFROM registry.access.redhat.com/ubi8/ubi:latest
# Label metadataLABEL maintainer="hey@okikio.dev"LABEL description="Red Hat Linux with MEGACmd"
# Install wget and dnfRUN yum install -y wget
# Manually download and install c-ares libraryRUN wget https://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/Packages/c-ares-1.13.0-8.el8.x86_64.rpm && \ dnf install -y "$PWD/c-ares-1.13.0-8.el8.x86_64.rpm"
# Download and install Mega CMD CLI toolRUN wget https://mega.nz/linux/repo/CentOS_8/x86_64/megacmd-CentOS_8.x86_64.rpm && \ dnf install -y "$PWD/megacmd-CentOS_8.x86_64.rpm"
# Clean upRUN yum clean all && \ rm -rf /var/cache/yum
# Add a script to automatically login to MegaCOPY ./auto_login.sh /auto_login.shRUN chmod +x /auto_login.sh
# Set the entry point to the auto login scriptENTRYPOINT ["/auto_login.sh"]
# Set the entry point to Mega CMD CLI# ENTRYPOINT ["mega-cmd"]