👷 Lightweight Dockerfile based on alpine image (#80)

更轻量的基于 alpine 的 Dockerfile
This commit is contained in:
wy580477 2024-06-27 23:09:00 +08:00 committed by GitHub
parent d461cbcbe6
commit 58a204d36c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
Dockerfile.alpine Normal file
View File

@ -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"]