Sign inSign up

cnrock/2048

By cnrock

•Updated 21 days ago

A small clone of 2048, nginx-1.28、busybox 1.37、nano、curl 、lrzsz with x86 and arm arch

Image
0

10K+

cnrock/2048 repository overview

Docker Stars Docker Pulls

  • 2048 with mutil arch(arm +amd64)

⁠Dockerfile

FROM --platform=$TARGETPLATFORM alpine:latest

MAINTAINER wanjie [email protected]⁠

⁠build base with lrzsz

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

⁠Second stage build

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 default HTTP connector port.

EXPOSE 80

⁠Set the default working directory as the installation directory.

COPY 2048 /usr/share/nginx/html

⁠Run 2048 as a foreground process by default.

CMD ["nginx", "-g", "daemon off;"]

Tag summary

Content type

Image

Digest

sha256:6461f4462…

Size

40.5 MB

Last updated

4 months ago

docker pull cnrock/2048