Sort packages, optimize Dockerfile RU (#4309)

Signed-off-by: Omer Aplatony <omerap12@gmail.com>
This commit is contained in:
Omer Aplatony 2024-09-05 05:22:00 +03:00 committed by GitHub
parent 2fea8345d4
commit 569f6ee97e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,9 @@ RUN cd ossfs-1.91.1 \
# alpine:3.18
FROM alpine@sha256:11e21d7b981a59554b3f822c49f6e9f57b6068bb74f49c4cd5cc4c663c7e5160
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
RUN apk --update add fuse curl libxml2 openssl libstdc++ libgcc python3 inotify-tools bash coreutils tini && rm -rf /var/cache/apk/*
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories && \
apk --update add bash coreutils curl fuse inotify-tools libgcc libstdc++ libxml2 openssl python3 tini && \
rm -rf /var/cache/apk/*
ENV OSSFS_VERSION v1.91.1
COPY --from=builder /usr/bin/ossfs /usr/bin/ossfs
@ -21,4 +22,4 @@ ADD mount_and_umount.py /
ADD inotify.sh /
ADD umount.sh /
RUN chmod u+x /inotify.sh /umount.sh
ENTRYPOINT ["/sbin/tini", "-g", "--"]
ENTRYPOINT ["/sbin/tini", "-g", "--"]