Skip to content

Commit 90c737e

Browse files
committed
chore(minio): use bin mc replace docker images
1 parent 33bbd65 commit 90c737e

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

rootfs/Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
FROM minio/mc:RELEASE.2020-07-17T02-52-20Z as mc
2-
31
FROM alpine:3.12
42

53
RUN adduser \
@@ -11,14 +9,14 @@ RUN adduser \
119

1210
COPY . /
1311

14-
COPY --from=mc /usr/bin/mc /usr/bin/mc
15-
16-
RUN apk add --update git sudo openssh-server coreutils tar xz jq bash\
17-
&& mkdir -p /var/run/sshd \
18-
&& rm -rf /etc/ssh/ssh_host* \
19-
&& mkdir /apps \
20-
&& passwd -u git \
21-
&& chmod +x /bin/create_bucket /bin/normalize_storage /docker-entrypoint.sh
12+
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /bin/mc \
13+
&& chmod +x /bin/mc \
14+
&& apk add --update git sudo openssh-server coreutils tar xz jq bash \
15+
&& mkdir -p /var/run/sshd \
16+
&& rm -rf /etc/ssh/ssh_host* \
17+
&& mkdir /apps \
18+
&& passwd -u git \
19+
&& chmod +x /bin/create_bucket /bin/normalize_storage /docker-entrypoint.sh
2220

2321
ENTRYPOINT ["/docker-entrypoint.sh"]
2422

0 commit comments

Comments
 (0)