PagerMaid-Pyro/Dockerfile.alpine
wy580477 b0a807b82c
👷 CI: auto build (#81)
为 Alpine 容器清空 pip cache 并自动构建 alpine 容器
2024-06-30 21:58:59 +08:00

18 lines
549 B
Docker

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 \
&& pip cache purge \
&& apk del .build-deps
ENTRYPOINT ["tini","--","bash","utils/docker-config.sh"]