26 lines
811 B
Docker
26 lines
811 B
Docker
FROM debian:stable-slim
|
|
RUN dpkg --add-architecture armhf
|
|
RUN ["/bin/apt-get", "update"]
|
|
# get neccessary files
|
|
RUN apt-get -y install wget golang-go fish ffmpeg
|
|
RUN wget http://http.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_armhf.deb && apt-get -y install "$PWD/libssl1.1_1.1.1w-0+deb11u1_armhf.deb"
|
|
RUN wget https://mega.nz/linux/repo/Raspbian_11/armhf/megacmd-Raspbian_11_armhf.deb && apt-get -y install "$PWD/megacmd-Raspbian_11_armhf.deb"
|
|
# golf
|
|
RUN mkdir /root/golf
|
|
COPY convert/main.go main.go
|
|
COPY convert/go.mod go.mod
|
|
RUN go build .
|
|
ENV PATH "$PATH:root/golf"
|
|
# sync
|
|
RUN mkdir /root/sync
|
|
WORKDIR /root/sync
|
|
RUN mkdir .megaCmd
|
|
ADD .megaCmd/* /root/.megaCmd
|
|
RUN mkdir music
|
|
RUN mkdir music-opus
|
|
# root
|
|
WORKDIR /root
|
|
COPY convert/convert.fish convert.fish
|
|
CMD mega-cmd-server
|
|
|