Ver Fonte

fix: docker

Byaidu há 1 ano atrás
pai
commit
993f9d8ae9
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -1,9 +1,12 @@
-FROM python:3.12-slim
+FROM python:3.12
 
 WORKDIR /app
 
 ENV PYTHONUNBUFFERED=1
 
+RUN apt-get update && apt-get install -y libgl1 \
+    && rm -rf /var/lib/apt/lists/*
+
 RUN pip install pdf2zh
 
 CMD ["pdf2zh", "-i"]