broadfield-dev commited on
Commit
14e6af3
·
verified ·
1 Parent(s): 3a28700

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- CMD ["python", "app.py"]
 
 
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"]