Skip to content

Commit 66fb5da

Browse files
committed
Megacmd Update
Use library.sh file. Move to unified build tool. Use buster slim.
1 parent fd13249 commit 66fb5da

File tree

5 files changed

+8
-76
lines changed

5 files changed

+8
-76
lines changed

megacmd/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:buster
1+
FROM debian:buster-slim
22
ARG TARGETPLATFORM
33

44
LABEL maintainer="[email protected]"
@@ -7,7 +7,7 @@ RUN apt-get update && \
77
apt-get install curl gnupg2 -y && \
88
echo path-include /usr/share/doc/megacmd/* > /etc/dpkg/dpkg.cfg.d/docker
99

10-
ADD mc.sh /
10+
ADD /megacmd/mc.sh /
1111

1212
RUN bash -c "/mc.sh $TARGETPLATFORM" && \
1313
apt install ./megacmd.deb -y && \
@@ -16,7 +16,8 @@ RUN bash -c "/mc.sh $TARGETPLATFORM" && \
1616
apt-get remove -y curl && \
1717
apt-get clean
1818

19-
COPY *.sh /
19+
COPY /megacmd/entrypoint.sh /
20+
COPY /library.sh /
2021

2122
ENTRYPOINT bash ./entrypoint.sh
2223
CMD /bin/bash

megacmd/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,5 @@ You will see the session secret in the output.
6262

6363
## Building this Image
6464

65-
The environment variable `DOCKER_HUB_PROFILE` must be set before you can build using the powershell script as this specifies the docker hub profile to build the image for.
66-
67-
```
68-
.\build <tag>
69-
```
70-
`<tag>` is the tag to apply to the build.
71-
72-
_The above command uses PowerShell and `buildx` to create the image._
65+
Use the [unified build tool](/README.md#building-images).
66+
There are no additional parameters to configure.

megacmd/build.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PLATFORM=linux/arm/v7,linux/amd64,linux/386
2+
DOCKERFILE=./Dockerfile

megacmd/build.ps1

Lines changed: 0 additions & 4 deletions
This file was deleted.

megacmd/library.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)