Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
# Install wkhtmltopdf and dependencies
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
wkhtmltopdf \
|
|
|
|
|
6 |
&& rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
WORKDIR /app
|
@@ -14,4 +16,4 @@ COPY . .
|
|
14 |
RUN mkdir -p /app/temp && chmod -R 777 /app/temp
|
15 |
|
16 |
ENV PORT=7860
|
17 |
-
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Install wkhtmltopdf and dependencies for networking and fonts
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
wkhtmltopdf \
|
6 |
+
ca-certificates \
|
7 |
+
fontconfig \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
WORKDIR /app
|
|
|
16 |
RUN mkdir -p /app/temp && chmod -R 777 /app/temp
|
17 |
|
18 |
ENV PORT=7860
|
19 |
+
CMD ["python", "app.py"]
|