Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 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 |
|
|
@@ -15,6 +15,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
&& ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf \
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Set working directory
|
| 19 |
WORKDIR /app
|
| 20 |
|
|
|
|
| 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 |
|
|
|
|
| 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
|
| 23 |
|