-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46400b6
commit 898f489
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.11.2-slim-bullseye | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY ./fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/ | ||
|
||
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list | ||
RUN cat /etc/apt/sources.list | ||
|
||
RUN apt-get update && \ | ||
apt install --no-install-recommends xvfb binutils qtbase5-dev wkhtmltopdf ffmpeg -yq && \ | ||
(strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 || true) && \ | ||
apt-get remove --purge -yq binutils && \ | ||
apt-get clean && \ | ||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY requirements.txt /app | ||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --no-cache-dir -r requirements.txt && pip cache purge | ||
|
||
COPY . /app | ||
|
||
CMD ["/bin/bash", "/app/docker/start.sh"] |