Upload Dockerfile
Browse filesBasic app with single image and PDF slide analysis functionality
- Dockerfile +26 -0
Dockerfile
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
|
2 |
+
|
3 |
+
# Install dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
python3 \
|
6 |
+
python3-pip \
|
7 |
+
git \
|
8 |
+
poppler-utils \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Set the working directory
|
12 |
+
WORKDIR /app
|
13 |
+
|
14 |
+
# Copy the requirements file and install dependencies
|
15 |
+
COPY requirements.txt .
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Copy the app code
|
19 |
+
COPY app.py .
|
20 |
+
|
21 |
+
# Set environment variables
|
22 |
+
ENV HF_HUB_DISABLE_SYMLINKS_WARNING=1
|
23 |
+
ENV PYTHONUNBUFFERED=1
|
24 |
+
|
25 |
+
# Run the app
|
26 |
+
CMD ["python3", "app.py"]
|