Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Install wkhtmltopdf and dependencies
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
wkhtmltopdf \
|
| 6 |
ca-certificates \
|
|
@@ -16,4 +16,5 @@ COPY . .
|
|
| 16 |
RUN mkdir -p /app/temp && chmod -R 777 /app/temp
|
| 17 |
|
| 18 |
ENV PORT=7860
|
| 19 |
-
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# Install wkhtmltopdf and dependencies, including certificates and a virtual display
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
wkhtmltopdf \
|
| 6 |
ca-certificates \
|
|
|
|
| 16 |
RUN mkdir -p /app/temp && chmod -R 777 /app/temp
|
| 17 |
|
| 18 |
ENV PORT=7860
|
| 19 |
+
# Run the app inside the virtual display
|
| 20 |
+
CMD ["xvfb-run", "python", "app.py"]
|