forked from thelittlefireman/docker-megacmd
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 879 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (20 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM debian:trixie
LABEL version="1.0.0"
LABEL repository="http://github.com/Difegue/action-megacmd"
LABEL homepage="http://github.com/Difegue/action-megacmd"
LABEL maintainer="sugoi@cock.li"
LABEL com.github.actions.name="GitHub Action for MEGA"
LABEL com.github.actions.description="Wraps the megacmd CLI to enable interaction with MEGA."
LABEL com.github.actions.icon="upload-cloud"
LABEL com.github.actions.color="red"
RUN apt-get update && apt-get install curl gnupg2 -y && \
curl https://mega.nz/linux/repo/Debian_13/amd64/megacmd-Debian_13_amd64.deb --output megacmd.deb && \
echo path-include /usr/share/doc/megacmd/* > /etc/dpkg/dpkg.cfg.d/docker && \
apt install ./megacmd.deb -y && \
apt-get remove -y curl && \
apt-get clean
ENV USERNAME NOBODY
ENV PASSWORD CHANGEME
COPY "entrypoint.sh" "/entrypoint.sh"
RUN chmod +x entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]