mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
build: 尝试添加 dockerfile
This commit is contained in:
parent
5372592fe0
commit
1fc54909af
22
dockerfile
Normal file
22
dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM python:slim
|
||||
|
||||
RUN pip3 --no-cache-dir install nb-cli
|
||||
|
||||
ENV TZ=Asia/Shanghai \
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
||||
echo ${TZ} > /etc/timezone && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
RUN apt-get update && apt-get install -y git && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /data/pkg
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN sed -i 's/^\-\-index\-url\s.*$//' requirements.txt && \
|
||||
pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
CMD ["nb", "run"]
|
Loading…
Reference in New Issue
Block a user