2020-09-12 09:17:19 +00:00
|
|
|
FROM ubuntu:19.10
|
2020-09-11 21:17:27 +00: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 09:17:19 +00: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 11:50:01 +00:00
|
|
|
|
|
|
|
ADD entrypoint.sh /
|
2020-06-07 13:43:15 +00:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2020-06-07 11:50:01 +00:00
|
|
|
|
|
|
|
WORKDIR /home/mega
|
|
|
|
|
2020-09-11 21:17:27 +00:00
|
|
|
USER mega
|
2020-09-12 09:17:19 +00:00
|
|
|
|
2020-06-07 11:50:01 +00:00
|
|
|
ENV PASSWORD=
|
|
|
|
ENV EMAIL=
|
2020-09-12 09:17:19 +00:00
|
|
|
|
2020-06-07 11:50:01 +00:00
|
|
|
CMD /entrypoint.sh
|