summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-06-03 18:35:16 +0800
committerKeuin <[email protected]>2023-06-03 18:35:16 +0800
commit35b5f627a86c43389b928e0d03e6642082bf5a61 (patch)
tree709f733e27a6985bab35b784478750d9309fb5e7 /Dockerfile
parente6c29a08b7fbbbd4533d635a51e71a8060ab9d48 (diff)
Dockerfile: Add latex and friends; Accept CLI args in `docker run`
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index e520c79..a91c441 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,23 @@
-FROM python:3.10
+FROM debian:latest
+
+ENV DEBIAN_FRONTEND noninteractive
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ python3 python3-pip \
+ texlive-xetex \
+ texlive-lang-japanese texlive-lang-chinese \
+ fonts-noto-cjk fonts-noto-cjk-extra && \
+ apt-get autoclean && \
+ apt-get --purge --yes autoremove && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
COPY requirements.txt .
-RUN pip3 install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
COPY *.py .
-CMD ["python3", "web.py"] \ No newline at end of file
+ENTRYPOINT ["python3", "web.py"] \ No newline at end of file