mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-21 13:38:21 +00:00
👷 Lightweight Dockerfile based on alpine image (#80)
更轻量的基于 alpine 的 Dockerfile
This commit is contained in:
parent
d461cbcbe6
commit
58a204d36c
17
Dockerfile.alpine
Normal file
17
Dockerfile.alpine
Normal 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"]
|
Loading…
Reference in New Issue
Block a user