24 lines
495 B
Docker
24 lines
495 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy source code
|
|
COPY .env /app/
|
|
COPY src/ /app/src/
|
|
COPY README.md /app/
|
|
|
|
# Make sure credentials directory exists
|
|
RUN mkdir -p /app/src/config
|
|
|
|
# Set environment variables
|
|
ENV PYTHONPATH=/app
|
|
|
|
# Expose port for Streamlit
|
|
EXPOSE 8501
|
|
|
|
# Command to run the application
|
|
CMD ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"] |