Spaces:
Running
Running
leonsimon23
commited on
Create Dockerfile
Browse files- 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"]
|