Skip to content

Commit

Permalink
Reduce image size
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Apr 21, 2024
1 parent bb19ba9 commit 7f50e2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Script/Fedora.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FROM fedora:40 as runtime

COPY --from=build /suanPan*.rpm /

RUN dnf upgrade --refresh -y && dnf install ./suanPan*.rpm -y
RUN dnf install ./suanPan*.rpm -y && rm ./suanPan*.rpm

RUN ln -s /usr/bin/suanPan /usr/bin/suanpan
RUN ln -s /usr/bin/suanPan /usr/bin/sp
Expand Down
2 changes: 1 addition & 1 deletion Script/Rocky.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM rockylinux:9 as runtime

COPY --from=build /suanPan*.rpm /

RUN dnf install ./suanPan*.rpm -y
RUN dnf install ./suanPan*.rpm -y && rm ./suanPan*.rpm

RUN ln -s /usr/bin/suanPan /usr/bin/suanpan
RUN ln -s /usr/bin/suanPan /usr/bin/sp
Expand Down
2 changes: 1 addition & 1 deletion Script/Ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM debian:12 as runtime

COPY --from=build /suanPan*.deb /

RUN apt-get update -y && apt-get install ./suanPan*.deb -y
RUN apt-get install ./suanPan*.deb -y && rm ./suanPan*.deb

RUN ln -s /usr/bin/suanPan /usr/bin/suanpan
RUN ln -s /usr/bin/suanPan /usr/bin/sp
Expand Down

0 comments on commit 7f50e2e

Please sign in to comment.