mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-16 11:02:58 +00:00
b0a807b82c
为 Alpine 容器清空 pip cache 并自动构建 alpine 容器
18 lines
549 B
Docker
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"] |