Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -33
Dockerfile
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
# Use Python 3.10 as base image
|
2 |
-
FROM python:3.10-slim
|
3 |
-
|
4 |
-
# Set working directory
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
-
# Install system dependencies and uv
|
8 |
-
RUN apt-get update && apt-get install -y \
|
9 |
-
poppler-utils \
|
10 |
-
curl \
|
11 |
-
&& rm -rf /var/lib/apt/lists/* \
|
12 |
-
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
|
13 |
-
&& echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc \
|
14 |
-
&& . ~/.bashrc
|
15 |
-
|
16 |
-
# Copy requirements first to leverage Docker cache
|
17 |
-
COPY pyproject.toml .
|
18 |
-
|
19 |
-
# Install Python dependencies using uv
|
20 |
-
RUN . ~/.bashrc && uv pip install -r pyproject.toml --system
|
21 |
-
|
22 |
-
# Copy the rest of the application
|
23 |
-
COPY . .
|
24 |
-
|
25 |
-
# Create directories for uploads and embeddings if they don't exist
|
26 |
-
RUN mkdir -p uploads embeddings
|
27 |
-
|
28 |
-
# Expose the port the app runs on
|
29 |
-
EXPOSE 7860
|
30 |
-
|
31 |
-
# Change to rag_demo directory and run the app
|
32 |
-
WORKDIR /app/rag_demo
|
33 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|