Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -1,17 +1,14 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
COPY requirements.txt .
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
-
# Ensure the temp directory is writable
|
| 14 |
-
# RUN mkdir -p /app/temp && chmod -R 777 /app/temp
|
| 15 |
-
|
| 16 |
ENV PORT=7860
|
| 17 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y wget && \
|
| 4 |
+
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb && \
|
| 5 |
+
apt install -y ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb && \
|
| 6 |
+
rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
COPY requirements.txt .
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
COPY . .
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
ENV PORT=7860
|
| 14 |
CMD ["python", "app.py"]
|