Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Python image as a base
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Install system-level dependencies
|
5 |
+
RUN apt-get update && apt-get install -y poppler-utils
|
6 |
+
|
7 |
+
# Install Python dependencies
|
8 |
+
COPY requirements.txt requirements.txt
|
9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
+
|
11 |
+
# Copy the app files
|
12 |
+
COPY . /app
|
13 |
+
WORKDIR /app
|
14 |
+
|
15 |
+
# Run the Streamlit app
|
16 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.enableCORS=false"]
|