small www
This commit is contained in:
1 parent
08c2934bb6
commit
cce1081f75
1 file changed
+27
-27
+27
-27
@@ -7,41 +7,41 @@ ARG APTLY_VERSION=1.6.3
|
|||||||
ARG APTLY_ZIP_SHA256=535ed24eb706bc25a316b59d709a7e74e10165f2ffab8552097ba7e4816a3e7e
|
ARG APTLY_ZIP_SHA256=535ed24eb706bc25a316b59d709a7e74e10165f2ffab8552097ba7e4816a3e7e
|
||||||
|
|
||||||
RUN dnf -y install --allowerasing \
|
RUN dnf -y install --allowerasing \
|
||||||
bash binutils ca-certificates cmake coreutils createrepo_c curl findutils \
|
bash binutils ca-certificates cmake coreutils createrepo_c curl findutils \
|
||||||
gcc gcc-c++ git gnupg2 gzip make openssl pkgconf-pkg-config python3 python3.11 \
|
gcc gcc-c++ git gnupg2 gzip make openssl pkgconf-pkg-config python3 python3.11 \
|
||||||
rpm rsync shadow-utils sqlite-devel tar unzip xz \
|
rpm rsync shadow-utils sqlite-devel tar unzip xz bzip2 \
|
||||||
&& dnf clean all \
|
&& dnf clean all \
|
||||||
&& rm -rf /var/cache/dnf
|
&& rm -rf /var/cache/dnf
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
curl -fsSL -o /tmp/nfpm.rpm \
|
curl -fsSL -o /tmp/nfpm.rpm \
|
||||||
"https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm"; \
|
"https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm"; \
|
||||||
echo "${NFPM_RPM_SHA256} /tmp/nfpm.rpm" | sha256sum -c -; \
|
echo "${NFPM_RPM_SHA256} /tmp/nfpm.rpm" | sha256sum -c -; \
|
||||||
rpm -Uvh /tmp/nfpm.rpm; \
|
rpm -Uvh /tmp/nfpm.rpm; \
|
||||||
rm -f /tmp/nfpm.rpm; \
|
rm -f /tmp/nfpm.rpm; \
|
||||||
nfpm --version
|
nfpm --version
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
curl -fsSL -o /tmp/aptly.zip \
|
curl -fsSL -o /tmp/aptly.zip \
|
||||||
"https://github.com/aptly-dev/aptly/releases/download/v${APTLY_VERSION}/aptly_${APTLY_VERSION}_linux_amd64.zip"; \
|
"https://github.com/aptly-dev/aptly/releases/download/v${APTLY_VERSION}/aptly_${APTLY_VERSION}_linux_amd64.zip"; \
|
||||||
echo "${APTLY_ZIP_SHA256} /tmp/aptly.zip" | sha256sum -c -; \
|
echo "${APTLY_ZIP_SHA256} /tmp/aptly.zip" | sha256sum -c -; \
|
||||||
mkdir -p /tmp/aptly; \
|
mkdir -p /tmp/aptly; \
|
||||||
unzip -q /tmp/aptly.zip -d /tmp/aptly; \
|
unzip -q /tmp/aptly.zip -d /tmp/aptly; \
|
||||||
install -m 0755 "$(find /tmp/aptly -type f -name aptly | head -n1)" /usr/local/bin/aptly; \
|
install -m 0755 "$(find /tmp/aptly -type f -name aptly | head -n1)" /usr/local/bin/aptly; \
|
||||||
rm -rf /tmp/aptly /tmp/aptly.zip; \
|
rm -rf /tmp/aptly /tmp/aptly.zip; \
|
||||||
aptly version
|
aptly version
|
||||||
|
|
||||||
ENV RUSTUP_HOME=/opt/rustup \
|
ENV RUSTUP_HOME=/opt/rustup \
|
||||||
CARGO_HOME=/opt/cargo \
|
CARGO_HOME=/opt/cargo \
|
||||||
RUST_PROXY_PYTHON=/usr/bin/python3.11 \
|
RUST_PROXY_PYTHON=/usr/bin/python3.11 \
|
||||||
PATH=/opt/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/opt/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs -o /tmp/rustup-init.sh; \
|
curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs -o /tmp/rustup-init.sh; \
|
||||||
sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal --default-toolchain "${RUST_TOOLCHAIN}" --component rustfmt --component clippy; \
|
sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal --default-toolchain "${RUST_TOOLCHAIN}" --component rustfmt --component clippy; \
|
||||||
rm -f /tmp/rustup-init.sh; \
|
rm -f /tmp/rustup-init.sh; \
|
||||||
rustc --version; \
|
rustc --version; \
|
||||||
cargo --version
|
cargo --version
|
||||||
|
|
||||||
# Registry/git/target cache is persistent, while rustup/toolchains stay in the image.
|
# Registry/git/target cache is persistent, while rustup/toolchains stay in the image.
|
||||||
ENV CARGO_HOME=/var/lib/package-builder/cargo
|
ENV CARGO_HOME=/var/lib/package-builder/cargo
|
||||||
|
|||||||
Reference in new issue
Block a user