arif670 commited on
Commit
423fc3f
·
verified ·
1 Parent(s): f7d010e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- # Use the official Python image (non-slim to include full libraries)
2
- FROM python:3.9
3
 
4
- # Prevent Python from writing .pyc files and enable unbuffered output
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Update package lists and install system dependencies:
9
- # - graphviz (for the dot executable)
10
  # - wkhtmltopdf (for PDF generation)
11
  RUN apt-get update && apt-get install -y \
12
  graphviz \
@@ -19,7 +19,6 @@ RUN apt-get update && apt-get install -y \
19
  ENV PATH="/usr/local/bin:${PATH}"
20
  ENV GRAPHVIZ_DOT="/usr/local/bin/dot"
21
 
22
- # Set working directory
23
  WORKDIR /app
24
 
25
  # Copy and install Python dependencies
 
1
+ # Use a Debian-based Python image for reliable package installation
2
+ FROM python:3.9-buster
3
 
4
+ # Prevent Python from writing pyc files and enable unbuffered output
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Update package lists and install system dependencies:
9
+ # - graphviz (provides the dot executable)
10
  # - wkhtmltopdf (for PDF generation)
11
  RUN apt-get update && apt-get install -y \
12
  graphviz \
 
19
  ENV PATH="/usr/local/bin:${PATH}"
20
  ENV GRAPHVIZ_DOT="/usr/local/bin/dot"
21
 
 
22
  WORKDIR /app
23
 
24
  # Copy and install Python dependencies