-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathdockerfile
More file actions
26 lines (17 loc) · 621 Bytes
/
dockerfile
File metadata and controls
26 lines (17 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3-slim-bullseye
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
RUN playwright install-deps && \
playwright install chromium && \
rm -rf /var/lib/apt/lists/*
CMD ["nb", "run"]