From 58a204d36c98418952d673c082be1a31b6a636e7 Mon Sep 17 00:00:00 2001 From: wy580477 <98247050+wy580477@users.noreply.github.com> Date: Thu, 27 Jun 2024 23:09:00 +0800 Subject: [PATCH] :construction_worker: Lightweight Dockerfile based on alpine image (#80) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更轻量的基于 alpine 的 Dockerfile --- Dockerfile.alpine | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile.alpine diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..ae92f92 --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,17 @@ +FROM python:alpine + +ENV PAGERMAID_DIR=/pagermaid +ENV TZ=Asia/Shanghai +ENV SHELL=/bin/bash + +WORKDIR /pagermaid/workdir + +COPY ./ /pagermaid/workdir + +RUN apk add --no-cache git bash imagemagick libmagic curl tzdata neofetch libzbar figlet fortune openssl tini \ + && apk add --no-cache --update --virtual .build-deps gcc python3-dev musl-dev linux-headers \ + && git config --global pull.ff only \ + && pip install -r requirements.txt \ + && apk del .build-deps + +ENTRYPOINT ["tini","--","bash","utils/docker-config.sh"] \ No newline at end of file