19 lines
475 B
Docker
Raw Permalink Normal View History

2020-09-12 10:17:19 +01:00
FROM ubuntu:19.10
2020-09-11 22:17:27 +01:00
RUN apt-get update && apt-get install -y curl ca-certificates
RUN adduser --disabled-password --gecos '' mega && adduser mega sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2020-09-12 10:17:19 +01:00
RUN curl -k -o /megacmd.deb https://mega.nz/linux/MEGAsync/xUbuntu_19.10/amd64/megacmd-xUbuntu_19.10_amd64.deb
RUN apt install -y ./megacmd.deb
2020-06-07 12:50:01 +01:00
ADD entrypoint.sh /
2020-06-07 14:43:15 +01:00
RUN chmod +x /entrypoint.sh
2020-06-07 12:50:01 +01:00
WORKDIR /home/mega
2020-09-11 22:17:27 +01:00
USER mega
2020-09-12 10:17:19 +01:00
2020-06-07 12:50:01 +01:00
ENV PASSWORD=
ENV EMAIL=
2020-09-12 10:17:19 +01:00
2020-06-07 12:50:01 +01:00
CMD /entrypoint.sh