A small clone of 2048, nginx-1.28、busybox 1.37、nano、curl 、lrzsz with x86 and arm arch
10K+
FROM --platform=$TARGETPLATFORM alpine:latest
MAINTAINER wanjie [email protected]
FROM --platform=$TARGETPLATFORM alpine:3.20 as base
RUN apk add gcc g++ make curl
RUN curl -L https://ohse.de/uwe/testing/lrzsz-0.12.21rc.tar.gz -o lrzsz-0.12.21rc.tar.gz
&& tar -xf lrzsz-0.12.21rc.tar.gz
&& cd lrzsz-0.12.21rc/
&& ./configure
&& make ; make install
&& ln -s /usr/local/bin/lrz /usr/local/bin/rz
&& ln -s /usr/local/bin/lsz /usr/local/bin/sz
&& rm -rf lrzsz-0.12.21rc lrzsz-0.12.21rc.tar.gz
FROM --platform=$TARGETPLATFORM alpine:latest
COPY --from=base /usr/local/bin/lsz /usr/local/bin/sz
COPY --from=base /usr/local/bin/lrz /usr/local/bin/rz
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
ENV TIMEZONE="Asia/Shanghai"
BUILD_DEPS="tzdata
sudo
nano
bash
iperf3
nginx
iputils
stress-ng
openssl
grpcurl
rsync
pciutils
fio
jq
bc
bind-tools"
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community stress-ng
RUN apk update &&
apk add --no-cache ${BUILD_DEPS} &&
cp -rfv /usr/share/zoneinfo/${TIMEZONE} /etc/localtime &&
echo ${TIMEZONE} > /etc/timezone &&
apk del tzdata &&
apk add --no-cache curl ca-certificates &&
touch /etc/ca-certificates.conf &&
rm -rf /var/cache/apk/* COPY 2048 /usr/share/nginx/html
COPY 2048/default.conf /etc/nginx/http.d/default.conf
COPY Dockerfile /usr/share/nginx/html
EXPOSE 80
COPY 2048 /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
Content type
Image
Digest
sha256:6461f4462…
Size
40.5 MB
Last updated
4 months ago
docker pull cnrock/2048