-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.12-slim
# System dependencies for pycparser, Neo4j, and build tools
RUN apt-get update && \
apt-get install -y gcc build-essential libffi-dev curl && \
rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the rest of the code
COPY . .
# Set environment variables (override at runtime as needed)
ENV NEO4J_USER=neo4j
ENV NEO4J_PASSWORD=strongpass123
ENV GROQ_API_KEY=your_groq_api_key_here
# Expose Streamlit default port
EXPOSE 8501
# Default command: run Streamlit app
CMD ["streamlit", "run", "app/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]