mirror-server (build)

Published 2024-02-24 20:50:06 -05:00 by dorian in dorian/mirror-server

Installation

docker pull code.birch-tree.net/dorian/mirror-server:build
sha256:380196b24acbd14c5eeccd3721ffbdd0463ae782bc94ec70041e6fcbe6e8f3cc

Image Layers

ADD file:dccb5d0cbcf502fb7c4135575f44ac26d665fc92f50546f3a7f9e4d433726453 in /
CMD ["bash"]
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase wget ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/*
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.76.0
RUN /bin/sh -c set -eux; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db' ;; armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a' ;; arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800' ;; i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac; url="https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init"; wget "$url"; echo "${rustupSha256} *rustup-init" | sha256sum -c -; chmod +x rustup-init; ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; rm rustup-init; chmod -R a+w $RUSTUP_HOME $CARGO_HOME; rustup --version; cargo --version; rustc --version; # buildkit
ENV APP_NAME=mirror-server
ENV APP_HOME=/srv/mirror-server
/bin/sh -c apt update && apt install -y curl && cargo install cargo-deb
/bin/sh -c mkdir -p ${APP_HOME}
WORKDIR /srv/mirror-server
/bin/sh -c USER=root cargo init --bin .
COPY file:c0cfd545d39962367653bdd3228a60759c1758fe0ae99e70170353f9b6863f88 in ./
/bin/sh -c cargo build && cargo build --tests && cargo build --release && rm src/*.rs
COPY file:4a59c4c89475f68405ccaf88c57f997d06b9d6b0e6cd0f591e4657f22428edbb in ./src/
COPY multi:6a6e357717d22c0efded1ec62fed8bac681667bc448b76d738c4e9631233f6e1 in ./
/bin/sh -c cargo build --release
LABEL org.opencontainers.image.created=2024-02-25T01:49:39Z
LABEL org.opencontainers.image.revision=3c01236d352f642ff407a9bf89c9243f62b97875
LABEL org.opencontainers.image.source=https://code.birch-tree.net/dorian/mirror-server.git
LABEL org.opencontainers.image.url=https://code.birch-tree.net/dorian/mirror-server

Labels

Key Value
org.opencontainers.image.created 2024-02-25T01:49:39Z
org.opencontainers.image.revision 3c01236d352f642ff407a9bf89c9243f62b97875
org.opencontainers.image.source https://code.birch-tree.net/dorian/mirror-server.git
org.opencontainers.image.url https://code.birch-tree.net/dorian/mirror-server
Details
Container
2024-02-24 20:50:06 -05:00
34
OCI / Docker
linux/amd64
772 MiB
Versions (4) View all
0.3.1 2024-02-24
latest 2024-02-24
build 2024-02-24
0.3.0 2024-02-23