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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -11,12 +11,13 @@ ENV PYTHONUNBUFFERED=1
11
  RUN apt-get update && apt-get install -y \
12
  graphviz \
13
  wkhtmltopdf \
14
- && ln -s /usr/bin/dot /usr/local/bin/dot \
15
- && ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- # Add /usr/local/bin to PATH so that 'dot' is found
19
  ENV PATH="/usr/local/bin:${PATH}"
 
20
 
21
  # Set working directory
22
  WORKDIR /app
 
11
  RUN apt-get update && apt-get install -y \
12
  graphviz \
13
  wkhtmltopdf \
14
+ && ln -sf /usr/bin/dot /usr/local/bin/dot \
15
+ && ln -sf /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ # Add /usr/local/bin to PATH and set GRAPHVIZ_DOT explicitly
19
  ENV PATH="/usr/local/bin:${PATH}"
20
+ ENV GRAPHVIZ_DOT="/usr/local/bin/dot"
21
 
22
  # Set working directory
23
  WORKDIR /app