Spaces:
Sleeping
Sleeping
Ari
commited on
Commit
•
eaae758
1
Parent(s):
e132e63
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ FROM docker.io/library/python:3.10@sha256:d12ca2c8482a44ccd00661f0bbc502abf2e96c
|
|
4 |
# Set the working directory to /home/user/app
|
5 |
WORKDIR /home/user/app
|
6 |
|
7 |
-
# Install necessary system dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
git \
|
10 |
git-lfs \
|
@@ -18,6 +18,9 @@ RUN apt-get update && apt-get install -y \
|
|
18 |
&& rm -rf /var/lib/apt/lists/* \
|
19 |
&& git lfs install
|
20 |
|
|
|
|
|
|
|
21 |
# Install the necessary Python packages specified in the requirements.txt file
|
22 |
COPY --mount=target=/tmp/requirements.txt,source=requirements.txt /tmp/requirements.txt
|
23 |
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
|
4 |
# Set the working directory to /home/user/app
|
5 |
WORKDIR /home/user/app
|
6 |
|
7 |
+
# Install necessary system dependencies including wkhtmltopdf
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
git \
|
10 |
git-lfs \
|
|
|
18 |
&& rm -rf /var/lib/apt/lists/* \
|
19 |
&& git lfs install
|
20 |
|
21 |
+
# Check that wkhtmltopdf is correctly installed and print its path
|
22 |
+
RUN which wkhtmltopdf
|
23 |
+
|
24 |
# Install the necessary Python packages specified in the requirements.txt file
|
25 |
COPY --mount=target=/tmp/requirements.txt,source=requirements.txt /tmp/requirements.txt
|
26 |
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|