Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -39,10 +39,20 @@ RUN chmod +x install.sh && ./install.sh
|
|
| 39 |
# RUN wget "https://raw.githubusercontent.com/preprocess-co/rag-document-viewer/refs/heads/main/demo/install.txt" -O ./install.txt
|
| 40 |
COPY install.txt install.txt
|
| 41 |
RUN pip3 install --no-cache-dir --upgrade -r install.txt
|
|
|
|
| 42 |
|
| 43 |
# Copy application code
|
| 44 |
# RUN wget "https://raw.githubusercontent.com/preprocess-co/rag-document-viewer/refs/heads/main/demo/server.py" -O ./server.py
|
| 45 |
COPY server.py server.py
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# Run the application
|
| 48 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--capture-output", "server:app", "--timeout=600", "--workers=10"]
|
|
|
|
| 39 |
# RUN wget "https://raw.githubusercontent.com/preprocess-co/rag-document-viewer/refs/heads/main/demo/install.txt" -O ./install.txt
|
| 40 |
COPY install.txt install.txt
|
| 41 |
RUN pip3 install --no-cache-dir --upgrade -r install.txt
|
| 42 |
+
RUN pip3 install --no-cache-dir gradio
|
| 43 |
|
| 44 |
# Copy application code
|
| 45 |
# RUN wget "https://raw.githubusercontent.com/preprocess-co/rag-document-viewer/refs/heads/main/demo/server.py" -O ./server.py
|
| 46 |
COPY server.py server.py
|
| 47 |
|
| 48 |
+
RUN mkdir -p uploads
|
| 49 |
+
# Expose the port that Gradio will run on
|
| 50 |
+
EXPOSE 7860
|
| 51 |
+
|
| 52 |
+
# Set environment variable for Gradio
|
| 53 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 54 |
+
ENV GRADIO_SERVER_PORT=7860
|
| 55 |
+
CMD ["python3", "server.py"]
|
| 56 |
+
|
| 57 |
# Run the application
|
| 58 |
+
# CMD ["gunicorn", "-b", "0.0.0.0:7860", "--capture-output", "server:app", "--timeout=600", "--workers=10"]
|