leonsimon23 commited on
Commit
5069ceb
·
verified ·
1 Parent(s): e024912

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . .
6
+
7
+ ENV PYTHONUNBUFFERED=1
8
+
9
+ RUN apt-get update && apt-get install -y libgl1
10
+
11
+ RUN pip install .
12
+
13
+ # 指定要公开的端口
14
+ EXPOSE 7860
15
+
16
+ CMD ["pdf2zh", "-i"]