Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
|
@@ -6,6 +6,15 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Install system dependencies
|
| 10 |
RUN apt-get update && apt-get install -y \
|
| 11 |
build-essential \
|
|
@@ -23,15 +32,6 @@ RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
|
|
| 23 |
RUN mkdir -p /app/OUTPUTS
|
| 24 |
RUN chmod -R 777 /app
|
| 25 |
|
| 26 |
-
# Set working directory
|
| 27 |
-
WORKDIR /app
|
| 28 |
-
|
| 29 |
-
# Copy requirements file and install Python dependencies
|
| 30 |
-
COPY requirements.txt requirements.txt
|
| 31 |
-
COPY extract_img_pdf.py extract_img_pdf.py
|
| 32 |
-
COPY templates/ /app/templates
|
| 33 |
-
COPY .env .env
|
| 34 |
-
|
| 35 |
# Expose the required port for HF Spaces
|
| 36 |
EXPOSE 7860
|
| 37 |
|
|
|
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
|
| 9 |
+
# Set working directory
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
|
| 12 |
+
# Copy requirements file and install Python dependencies
|
| 13 |
+
COPY requirements.txt requirements.txt
|
| 14 |
+
COPY extract_img_pdf.py extract_img_pdf.py
|
| 15 |
+
COPY templates/ /app/templates
|
| 16 |
+
COPY .env .env
|
| 17 |
+
|
| 18 |
# Install system dependencies
|
| 19 |
RUN apt-get update && apt-get install -y \
|
| 20 |
build-essential \
|
|
|
|
| 32 |
RUN mkdir -p /app/OUTPUTS
|
| 33 |
RUN chmod -R 777 /app
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# Expose the required port for HF Spaces
|
| 36 |
EXPOSE 7860
|
| 37 |
|