Skip to content

Commit

Permalink
chore(rust): by using a pre-compiled binary we can drop rust from the…
Browse files Browse the repository at this point in the history
… base image (#4)
  • Loading branch information
hutchic authored Dec 19, 2022
1 parent 30d6340 commit 8bc2708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.apk
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ RUN apk update \
&& sed -i'' 's/^mozilla\/DST_Root_CA_X3.crt$/!mozilla\/DST_Root_CA_X3.crt/g' /etc/ca-certificates.conf \
&& update-ca-certificates \
&& curl -sSL https://github.com/mikefarah/yq/releases/download/1.15.0/yq_linux_amd64 -o /usr/local/bin/yaml \
&& chmod +x /usr/local/bin/yaml \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
&& chmod +x /usr/local/bin/yaml

RUN curl -fsSLo /tmp/yaml-0.2.5.tar.gz https://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz \
&& cd /tmp \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.deb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
zlib1g-dev \
&& curl -sSL https://github.com/mikefarah/yq/releases/download/2.1.1/yq_linux_$(dpkg --print-architecture) -o /usr/local/bin/yaml \
&& chmod +x /usr/local/bin/yaml \
&& yaml --version \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
&& yaml --version

RUN curl -fsSLo /tmp/yaml-0.2.5.tar.gz https://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz \
&& cd /tmp \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ RUN yum -y install epel-release && \
zlib-devel \
&& ln -s /usr/bin/cmake3 /usr/bin/cmake \
&& curl -sSL https://github.com/mikefarah/yq/releases/download/1.15.0/yq_linux_amd64 -o /usr/local/bin/yaml \
&& chmod +x /usr/local/bin/yaml \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
&& chmod +x /usr/local/bin/yaml

RUN curl -fsSLo /tmp/yaml-0.2.5.tar.gz https://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz \
&& cd /tmp \
Expand Down

0 comments on commit 8bc2708

Please sign in to comment.